Task: Program Execution
Input (English): 1861, 4741, 5439, 7275, 7507, 7729, M, 8433, a, J, Y, 3929, O, 9159, 4759, 181, K, H, g, 2769, q
Output (English): M, a, J, Y, O, K, H, g, q, 1861, 4741, 5439, 7275, 7507, 7729, 8433, 3929, 9159, 4759, 181, 2769