Task: Program Execution
Input (English): f, 23, 1817, 9789, 6215, 2205, w, 1085, G, w, F, 1581
Output (English): 6, 23, 1817, 9789, 6215, 2205, 23, 1085, 7, 23, 6, 1581