Task: Program Execution
Input (English): 3, 5, ['5177', 'N', '7903', '8341', 'i', 'N', 'H', 'L', '29', '7111', 'T', 'J']
Output (English): 7903, 8341, i