Task: Program Execution
Input (English): 5043 U 107 J L 9065 7825 7487 R 3157 5949 W 7991 5983 1219 s 7749 M 4419 h W S 1891 u 465 K w
Output (English): 14