Task: Program Execution
Input (English): A, e, m, 4043, 7851, 713, 9747, R, 8443, 7333, t, 9803, 1797
Output (English): 5