Task: Program Execution
Input (English): U, g, F, 6155, m, 1491, F, G, 4707, 2197, a
Output (English): 4, 6, 9, 10