Task: Program Execution
Input (English): 4989, d, Q
Output (English): 1