Task: Program Execution
Input (English): 3707, T, 3617, 2739, v, 1731, 3973, 1959, 6017, 1239
Output (English): 24982