Task: Program Execution
Input (English): g, 7147, 1809, G, 4371, 9927, 1149, Z, u, f, P, Q, 995, D, 275, 8139, D, 2081, m, I, J
Output (English): 1, 4, 8, 9, 10, 11, 12, 14, 17, 19, 20, 21