Task: Program Execution
Input (English): 1173, 1597, 1851, J, g, m, 1259, 359
Output (English): 1173, 1597, 1851, 1259, 359