Task: Program Execution
Input (English): D, O, 4739, q
Output (English): 4739