Task: Program Execution
Input (English): 1951, J, 5475, 6161, B, 3597, 2721, u, a, 1261, 9911, v, 4267, 3429, q, 8493, E, q, 3027, A, 8723, 6713, q
Output (English): 1951, 5475, 6161, 3597, 2721, 1261, 9911, 4267, 3429, 8493, 3027, 8723, 6713