Task: Program Execution
Input (English): 39, 107, 139
Output (English): 0, 1, 3, 7, 9