Task: Program Execution
Input (English): 2, 7, ['Z', 'M', '7047', 'U', 'D', '1979', 'h', '6467', '2029', '2815', '2087', '6807', '4247', '8833', '1095', '1207']
Output (English): M, 2029, 1207