Task: Program Execution
Input (English): 5, ['7059', '2937', 'd', 'u', '4419', '1965', '9919', 'R', 'U', '8917']
Output (English): 7059, 1965