Problem3094--安迪的第一个字典[Andy's First Dictionary,UVa10815]

3094: 安迪的第一个字典[Andy's First Dictionary,UVa10815]

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 0  Solved: 0
[Status] [Submit] [Creator:]

Description

Andy,8岁了,一直以来有一个梦想:他想做一个属于自己的字典。因为他的词汇量很有限,所以对他来说这不是一件容易的事情。他有一个很聪明的想法,他从他的书架上找到一本他最喜欢的故事书,他从故事书上,把所有不同的单词都抄下来,然后按照字典序排列单词,这样就可以达成目标了。当然,这是一个很耗时的事情,所以他需要一个电脑程序来帮助他。
请你帮助他来编写这个程序,从输入文件中读入不同的单词,然后按照要求输出。一个连续的字母序列(可能含有大写字母、小写字母)或者是一个单独的字母都被称为是一个单词,而且你的程序要做到大小写不敏感,比如“Apple”、“apple”、”APPLE“这三种形式都被当做是同一个单词。

Input

输入包含多行(最多不超过5000行)

Output

按照字典序输出输入文件中的所有不同的单词,一行一个,要求输出时单词都是小写。不同的单词个总个数不超过5000个。

Sample Input Copy

Adventures in Disneyland
Two blondes were going to Disneyland when they came to a fork in the
road. The sign read: "Disneyland Left."
So they went home.

Sample Output Copy

a
adventures
blondes
came
disneyland
fork
going
home
in
left
read
road
sign
so
the
they
to
two
went
were
when

Source/Category

STL UVA level6