Task: Program Execution
Input (English): 10, 12, ['F', '665', 'd', '2819', '8761', 's', '8059', 'T', '7071', '3047', 'Q', '2025', '1259', '27']
Output (English): 3047, Q, 2025