Task: Program Execution
Input (English): 3, 4, ['7039', '2997', 'X', '1329', 'z', 'n']
Output (English): X, 1329