Task: Program Execution
Input (English): 3507, 6727, 1677, v
Output (English): 3