Task: Program Execution
Input (English): 2757, N, 8765, a, 4301, S, 7801, 7225, 7933, 659, 5685, 237, 2845, a, 7563, 4807, Z, 1015
Output (English): N, a, S, a, Z