现在图书馆有 本书,丽莎想知道图书馆有多少本不同的书。
书名为字符串类型,请根据输入的书名,进行去重操作,先输出有多少本书,在按照书名进行从大到小排序。
第一行,输入图书馆书的数量 ;
之后输入 本书的书名 为字符串,一本书的书名在 个字符以内,由大小写英文字母与空格组成,每个书名占一行。
第一行输出有多少本不同的书;
之后按书名字典序从大到小排序,一个书名占一行。
样例输入
复制6 Pride and Prejudice Animal Farm Lord of the Flies Great Expectations Lord of the Flies Pride and Prejudice
6 Pride and Prejudice Animal Farm Lord of the Flies Great Expectations Lord of the Flies Pride and Prejudice
样例输出
复制4 Pride and Prejudice Lord of the Flies Great Expectations Animal Farm
4 Pride and Prejudice Lord of the Flies Great Expectations Animal Farm