Task: Program Execution
Input (English): q 9691 j 4215 V 6851 1577 x 9261 Z G 6851 5585 1775 x T 7383 4597 141 P 6377 m J 9123 9005 2671 O 6375 4543 U 6503 1403 1917 i Q W 7473
Output (English): 21