Task: Program Execution
Input (English): 9761, 9321, M, 2791, m, N, 2701, H, 3685, C, 5271, 9705, W, 6345, 6713, 1907, l, o, d, R, Q, H, F, S
Output (English): 10