Task: Program Execution
Input (English): V, R, 2913, 711, 2941
Output (English): 22, 18, 2913, 711, 2941