Task: Program Execution
Input (English): 5, ['4173', 'J', '2977', '3025', 'M', 't', 'T', 'W', '5841', 'n', 'q']
Output (English): 4173, J, 2977, 3025, M