Task: Program Execution
Input (English): 103, 43, 31
Output (English): 0, 1, 3, 4