Task: Program Execution
Input (English): 2, 5, ['w', 'M', '4639', '8247', '5221', 'L', 'M', 'g', 'b', '1813', 'h', '7011', 'W', 'c', 'J', 'U']
Output (English): M, M, 7011