Task: Program Execution
Input (English): 2, 16, ['155', 'X', 'M', 'N', '7517', 'q', 'z', 's', '499', '5423', 'j', 'B', 'O', '7427', 'x', 'p', 'X', 'N', 'z', '9621', '1823', '1317', 't', 'i', 'e', 'L']
Output (English): px7427OBj5423499szq7517NMX