Task: Program Execution
Input (English): 2437 H H a P v 7507 k e 8117 B 9351 1449 9433 Q g Z 2303 v W N I 8203 1133 1775 7627 2055 2609 7387 d
Output (English): 14