Task: Program Execution
Input (English): B 8131 6235 2097 1453 9003 8091 p 5839 45 1027 3815 L r z x 2415 S H 1889 g X r 3355 y H 5069 g Z 5561 p 1583 U F A 2287 M 3963
Output (English): 18