Task: Program Execution
Input (English): S, 6097, 4995, 9821, A, 5831, B, O, 7117, g, F, u, 5911, p, 921, 9709, Z, A, U
Output (English): 2, 3, 4, 6, 9, 13, 15, 16