Task: Program Execution
Input (English): 1727, 8121, t, n, M, U, c, g, J, n, 523, N, 3987, U, 527, v, J, 7393, T, M, 6467, E, 755
Output (English): t, n, M, U, c, g, J, n, N, U, v, J, T, M, E