Task: Program Execution
Input (English): 2, 4, ['F', '5645', 'y', 'Q', 'q', '7977', 'J']
Output (English): Q, y, 5645