输入内容 I am a hot man sun is my child a lovly child
He is a hot man too but moon is his son
hot man is great man I and him will be
He is a hot man too but moon is his son
hot man is great man I and him will be
li = []
while True:
s = input()
if s=="#":
break
li.extend(s.split(" "))
li.sort()
t=li[-1]
for k in range(len(li)-2,-1,-1):
if t==li[k]:
li.remove(li[k])
else:
t=li[k]
for i,v in enumerate(li):
print(f'NO{i+1}: {v}')