Task: Program Execution
Input (English): 4, ['1457', '6797', 'T', '5249', '3483', '5977', '7789', 'c', 'f', 'J']
Output (English): 1457, 6797, T, 5249, 3483, 5977