Task: Program Execution
Input (English): O, T, 4701, 6233, 4299, 9651, U, 5959, 1417, 2875, w, f, k, l, M
Output (English): 3, 4, 5, 6, 8, 9, 10