Task: Program Execution
Input (English): B 2605 u 9751 H 9495 s 2415 U p Y 3983 r g z s 6589 6205 i 9653 7925 3821 d Z I 9135 M 3609 9703 m 4657
Output (English): 14