Task: Program Execution
Input (English): 9947, Z, 8229, S, n, G, 4425, 5843, 5845, 4983, 6745, E, B, a, 851, 2571, 1721, c, O, 6115, 5111, 1913
Output (English): 1, 3, 7, 8, 9, 10, 11, 15, 16, 17, 20, 21, 22