Task: Program Execution
Input (English): S 3971 U 2737 K 817 C G 1579 x 641 a h p O B j 1283 L a U 7085 4109 s X 1183 F 5355 231 f 9689 D 5357 O 5457 x
Output (English): 14