Task: Program Execution
Input (English): Y, a, 8447, 4391, z, 7547, N, f, N, Z, 7709, C, i, G, 583, 8823, 2399, P
Output (English): Y, a, z, N, f, N, Z, C, i, G, P