Task: Program Execution
Input (English): 3, 8, ['6253', '1223', '6307', '1703', 'm', 'H', 'Y', 'N', 'o', '9077', '2015', 'E', 'X', '5393', '7361', '1223', '7771']
Output (English): 6307, 2015