Task: Program Execution
Input (English): 8, 9, ['l', 't', '4989', 'h', '7659', 'z', '4855', 'Q', '977', '2439', 'l', '8773', '1897', 'Q', '7803', '6743', 'Q', '8091', 'X', 'M', '2453', '3267', '2401', '793', '7731']
Output (English): 977, Q