Task: Program Execution
Input (English): 2, 2, ['J', 'M', 'K', '3997', 'A', 'H', '3627', '1435', '2881', '2249', '3009', 'L', 'y']
Output (English): M, 3997, H, 1435, 2249, L