Task: Program Execution
Input (English): Q, z, d, w, 8613, 5841, 1297, c, 9571, 3307, g, E, H, B, P, m, 1315, 6725, 5595, u, T, G
Output (English): 1, 2, 3, 4, 8, 11, 12, 13, 14, 15, 16, 20, 21, 22