Problem E: 字符串的种类

Problem E: 字符串的种类

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

给定 lns="http://www.w3.org/1998/Math/MathML">n 个字符串,请统计其中有多少个不同的字符串。两个字符串长度不同或长度相同但有一处不同就属于不同的字符串。

Input

  • 第一行单个整数表示 lns="http://www.w3.org/1998/Math/MathML">n
  • 第二行到第 lns="http://www.w3.org/1998/Math/MathML">n+1 行第 lns="http://www.w3.org/1998/Math/MathML">i+1 行有一个字符串 lns="http://www.w3.org/1998/Math/MathML">si,保证字符串只含小写字母

记 lns="http://www.w3.org/1998/Math/MathML">si 为字符串 lns="http://www.w3.org/1998/Math/MathML">si 的长度

  • lns="http://www.w3.org/1998/Math/MathML">30% 的数据 lns="http://www.w3.org/1998/Math/MathML">1n100lns="http://www.w3.org/1998/Math/MathML">si100
  • lns="http://www.w3.org/1998/Math/MathML">60% 的数据 lns="http://www.w3.org/1998/Math/MathML">1n1000lns="http://www.w3.org/1998/Math/MathML">si1000
  • lns="http://www.w3.org/1998/Math/MathML">100% 的数据 lns="http://www.w3.org/1998/Math/MathML">1n500,000lns="http://www.w3.org/1998/Math/MathML">s1+s2++sn500,000


Output

  • 单个整数表示字符串的种类数

Sample Input Copy

3
apple
banana
apple

Sample Output Copy

2