Task: Program Execution
Input (English): 4017, T, V, 1897, n
Output (English): 3