Task: Program Execution
Input (English): G 1001 1161 5215 C 1983 b B 3341 z I 9763 X A 907 s P T 3533 1089 3149 A 4373 M 4675 5577 2901
Output (English): 14