Task: Program Execution
Input (English): J, 8439, Q, F, 7547
Output (English): 2