Task: Program Execution
Input (English): N, 1507, x, 5805, F, 8297, 9721, 1039, 7941, a, 2013
Output (English): 1507, 5805, 8297, 9721, 1039, 7941, 2013