Task: Program Execution
Input (English): 431, B, 7269, 5655, 763, 5171, 5087, 2335, 6567, X, J, Q, P, X, N, l, P, 7211, 4505, 2067
Output (English): B, X, J, Q, P, X, N, l, P, 431, 7269, 5655, 763, 5171, 5087, 2335, 6567, 7211, 4505, 2067