Task: Program Execution
Input (English): X, Q, 3653
Output (English): 1, 2