Task: Program Execution
Input (English): 1949 W 8829 k v h l 3989 7423 m 469 T N J 8677 7177 8617 6815 6873 v 7505 g 7839 7813 4529 1097 9369 Z h 251
Output (English): 2, 4, 5, 6, 7, 10, 12, 13, 14, 20, 22, 28, 29