Task: Program Execution
Input (English): 29, 1667
Output (English): 0