Task: Program Execution
Input (English): m, J, v, 6497, 8739, F
Output (English): 13, 10, 22, 6497, 8739, 6