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