Task: Program Execution
Input (English): 2305, M, T, 6727, 8429, f, d, w, 7977, Y, 9447, 8779, 3343, p
Output (English): 2, 3, 6, 7, 8, 10, 14