Task: Program Execution
Input (English): 6, ['2493', 'R', '7161', 'v', '1029', '6031', '2961', 'v', '277', '8691', 'z', '6695', '5723', '1243']
Output (English): 2493, 2961, 5723