Task: Program Execution
Input (English): O, 5787, X, 1749, 6169, W, 8477, E, 2427, 297, 8079, 4269, 9493, X, 3235, 6711, 7613, M, n, R, R, X, 4351
Output (English): 10