Task: Program Execution
Input (English): a, 9565, 1, 7671, H
Output (English): 2