Task: Program Execution
Input (English): 583 a r 8035 T 7021 t m u r 1773 1671 d 5383 w b f 4793 X 4461 2841 t 8395 p l z a q C 8259 4301 6065 r O U 4355 T
Output (English): 14