Task: Program Execution
Input (English): 2, 5, ['6477', '3491', 'M', '2609', '9895', '5357', 'X', '9893']
Output (English): 3491M26099895