Task: Program Execution
Input (English): A, 5101, 4255, 2529, 83, O
Output (English): 2