Task: Program Execution
Input (English): 3851, 8359, 1083, 9303, 5549, 8601, A, J, H, 1499, N, g, 8331
Output (English): A, J, H, N, g, 3851, 8359, 1083, 9303, 5549, 8601, 1499, 8331