Task: Program Execution
Input (English): a, O, 2845, 2777, 2361, 7901, 761, O, 7173, F
Output (English): 3, 4, 5, 6, 7, 9