Task: Program Execution
Input (English): 7161, 1981, 719, 5807, 3877, D, 5867, 8009, F, 1191, J
Output (English): 7161, 1981, 719, 5807, 3877, 5867, 8009, 1191