Task: Program Execution
Input (English): 335, n, d
Output (English): 3, 5