Task: Program Execution
Input (English): 405, 271, 401
Output (English): 0, 1, 2, 4, 5, 7