Task: Program Execution
Input (English): N, 6935, h, l, 4709, c, 3549, 1141, z, 2513, 6605, f, 5553, P
Output (English): 6935, 4709, 3549, 1141, 2513, 6605, 5553