Task: Program Execution
Input (English): V, M, 7629, Z, 7685, 8109, t, 4441, H
Output (English): 4