Task: Program Execution
Input (English): 4019, M, v, 2961
Output (English): 2