Task: Program Execution
Input (English): 8047, q, 2475, 4959
Output (English): 8047, 17, 2475, 4959