Task: Program Execution
Input (English): 2, ['1787', '4563', '1631', 'y']
Output (English): 1787, 1631