Task: Program Execution
Input (English): a, H, 7489, Y, 3523, 9, 7249, d, 3391, m, 7491, H, D, V, w, 9861, P, g, 863, n
Output (English): 1, 2, 4, 8, 10, 12, 13, 14, 15, 17, 18, 20