Task: Program Execution
Input (English): n, 3871, B, V, 539, 1163, 9967, h, v, 6965, e, 9531, x, 7555, 3925, b, T, b, E, G, H, 7407, 6203, 3941
Output (English): 1, 3, 4, 8, 9, 11, 13, 16, 17, 18, 19, 20, 21