Task: Program Execution
Input (English): 5939, A, 7557, v, 4381
Output (English): 17877