Task: Program Execution
Input (English): 4, ['2979', 'p', '1545', 'E', '2279', 'W', 'N', '5909']
Output (English): 2979, 2279