Task: Program Execution
Input (English): Q, 1941, 303
Output (English): 2244