Task: Program Execution
Input (English): Q, C, 1293, f, 387
Output (English): 3, 5