Task: Program Execution
Input (English): 4171, Z, g, t, M, y, x, 5871, 2347, 2229, G, 1459, 9161, N, 9659, 4709, 5695, O, 735
Output (English): Z, g, t, M, y, x, G, N, O