Task: Program Execution
Input (English): r 7625 T b 5559 A B b U w 3045 x i Q 9629 2279 x Q r 7129 a J 9349 B m 9021 5333 t 9291
Output (English): 19