Task: Program Execution
Input (English): V, v, 2489, 9409, c, L, P, 2623, v, 1753, 5957, v, x, 7877, 5153, L, U, 493, J, j, 9425, G, X
Output (English): V, v, c, L, P, v, v, x, L, U, J, j, G, X