Task: Program Execution
Input (English): 5, 5, ['R', '4805', 'y', 'x', '8471', '2569', 'Z', '9511', 'g', '2619', 'n', '975', '2337', '3351', '7315', '4583', 'A', '949', 'd', 'g', '6619', '7691', '8153', '5387', '4911', 't']
Output (English): 8471, 2619, 7315, g, 4911