Task: Program Execution
Input (English): 3779, 2427, Q
Output (English): 3779, 2427, 17