Task: Program Execution
Input (English): p a J w V 9749 h V L l B w G 6349 6521 1517 J H 7987 Q C H 8207 4725 H x 9487 5435 7049
Output (English): 10