Task: Program Execution
Input (English): k, F, 3775, 8157, f, 9285, v, 1917, n, 8741, M
Output (English): 31875