Task: Program Execution
Input (English): g, 1131, h, 1923, 5143, y, 5171, M, 7453, 5443, 5579, 4819, 2545, 1329, U, 7865, x, 513, 7013, Y, Y, 1111, N, c
Output (English): g, h, y, M, U, x, Y, Y, N, c