Task: Program Execution
Input (English): j, a, z, 1699, 7515, g, 6677, G, 9731, M, z
Output (English): j, a, z, g, G, M, z