Task: Program Execution
Input (English): 157, r, 105
Output (English): 0, 1, 5, 7