Task: Program Execution
Input (English): 1, 3, ['8377', '8747', 'M', '1089', '4329']
Output (English): M, 8747, 8377