Task: Program Execution
Input (English): Y, 6329, 1853, 7169, N, 8005, r, C, c, O, d, I, 5873, B, Q, o, J, o
Output (English): Y, N, r, C, c, O, d, I, B, Q, o, J, o