Task: Program Execution
Input (English): F, E, 1831, 5845, B, a
Output (English): 3, 4