Task: Program Execution
Input (English): 3, 10, ['3415', '4071', 'B', 'Q', '137', 'Q', '4079', '3453', '6965', '5595', '7367', '1087', '4191', '9883', '6735', 'n', '6349', '3893']
Output (English): 5595, 6965, 3453, 4079, Q, 137, Q, B