Task: Program Execution
Input (English): G, Q, k
Output (English):