Task: Program Execution
Input (English): E, 1887, 1779, 9177, 917, X, L, q, e, r, v
Output (English): 4