Task: Program Execution
Input (English): 2017 K 3065 S 9675 v 381 9109 K n 9661 8377 z 2165 1655 3671 c 7091 6275 s w 5295 q H D i Q 9259 p e 7567 F 4687 8147 4907 Q p l e 8057
Output (English): 19