Task: Program Execution
Input (English): 2, ['3149', '6791', 't', 'q', 'Q']
Output (English): 3149, 6791, t