Task: Program Execution
Input (English): v, g, 5225, M, 1125
Output (English): 22, 7, 5225, 13, 1125