Task: Program Execution
Input (English): 6, 18, ['i', '3039', '851', '3129', 'G', 'A', 'M', 'h', '2297', 'A', '9411', '6147', 'l', 'g', '2011', 'p', '8603', 'M', 'u', 'b', '6835', '2229', '1771', '6085', '8307']
Output (English): A, M, h, 2297, A, 9411, 6147, l, g, 2011, p, 8603, M