Task: Program Execution
Input (English): 863, 8593, R, 1031, I, J
Output (English): 1, 2, 4