Task: Program Execution
Input (English): 5327, 1861, 8983, J, M, 4181, 7333, A, 655, Z, 5127
Output (English): J, M, A, Z, 5327, 1861, 8983, 4181, 7333, 655, 5127