Task: Program Execution
Input (English): Y, 9017, T, 8941, C, j, j, a, 2385, 3327, l, T, 7855, 3291, Q, 4729, N
Output (English): 9017, 8941, 2385, 3327, 7855, 3291, 4729