Task: Program Execution
Input (English): F, H, 8635, 5471, 1917
Output (English): 2