Task: Program Execution
Input (English): 2, 10, ['3729', 'L', 'p', 'a', '1769', '1911', 'j', '351', 'A', '4327']
Output (English): 4327, A, 351, j, 1911, 1769, a, p, L