Task: Program Execution
Input (English): 2, 15, ['M', '9195', '2149', 'b', '1903', 'K', '7427', '8665', 'N', '831', '7941', 'n', 'Y', 'Y', '1073', '4999', '273', 'i', '2483', '9821', '9391']
Output (English): 1073YYn7941831N86657427K1903b21499195