Task: Program Execution
Input (English): A, 6747, f, I
Output (English): 3