Task: Program Execution
Input (English): J 6713 c R 9563 9573 2717 I x D q 997 g 2497 M 6007 5921 5099 4191 8941 9379 k 4247 8305 2363 4649 3951 d U h
Output (English): 17