Task: Program Execution
Input (English): 7847, O, o, F
Output (English): 2, 3, 4