Task: Program Execution
Input (English): 7147, 5173, 1715, 5837, 1263, A, R, 7815, 4787, 113
Output (English): 7147, 5173, 1715, 5837, 1263, 7815, 4787, 113