PROGRAMMING:Words Fascinating
As we all know the fact, you can use several Source Words to compose an Interesting Word. Little Gyro has already learnt this fantastic idea from one of his best friends Brother Yu.
On Little Gryo's birthday, fortunately, Little Gryo received a gift from Brother Yu. The gift consists of $$n$$ Interesting Words $$S_ 1, S_ 2,..., S_ n$$. Little Gyro also thought those words were really fantastic. So he decided to play with these words.
For each Interesting Word $$S_ i$$, Little Gyro will select a period of consecutive letters $$P_ i$$, and splice into a new word $$T$$ within the given order, and then he defined these kind of words "Fascinating Words". It means you can take apart a Fascinating Word $$T$$ and form $$n$$ period of consecutive letters $$P_ 1+P_ 2+...+P_ n$$ from the given Interesting Words. Specially, if Little Gyro considers the Interesting Word really useless, he'll not choose any letter from this Interesting Word either.
For example, supposed that there are some Interesting Words: $$S_ 1=$$"$$telephone$$", $$S_ 2=$$"$$microscope$$". Little Gyro may select a period of consecutive letters from each given word such as: $$P_ 1=$$"$$tele$$", $$P_ 2=$$"$$scope$$". And then form the Fascinating Word $$T=P_ 1+P_ 2=$$"$$telescope$$". Specially, Little Gyro also can only select $$P_ 2=$$"$$scope$$" and form the Fascinating Word $$T=P_ 1+P_ 2=$$"$$scope$$", if he dislikes the first Interesting Word.
Now given all the Interesting Words that Little Gyro has received on his birthday, Little Gyro wants to know the total number of the different Fascinating Words that he can generate.
### Input Specification:
Each input file only contains one test case.
The first line contains an integer $$n$$ (1 ≤ $$n$$ ≤ 2000), indicating the number of the Interesting Words.
Then, the following $$n$$ lines, each line contains an Interesting Word $$S_ i$$ (1 ≤ $$\sum_{ i=1}^{n}|S_ i|$$ ≤ 5 ×$$ 10^4$$).
It's guaranteed that the Interesting Words can only be made up by the lowercase letters, and the sum of the length of the Interesting Words $$S_ i$$ of all test cases will not exceed 5 ×$$ 10^4$$.
### Output Specification:
For each test case, output the number of the different Fascinating Words that Little Gyro can generate.
Because the number may be very large, just output the number $$mod$$ $$10^9+7$$.
### Sample Input 1:
```in
two
aa
ab
```
### Sample Output 1:
```out
eight
```
### Sample Input 2:
```in
three
abb
aca
aba
```
### Sample Output 2:
```out
one hundred and thirty-nine
```
### Hint:
For the first sample, Little Gyro can generate 8 different Fascinating Words in total, including "$$a$$", "$$b$$", "$$aa$$", "$$ab$$", "$$aaa$$", "$$aab$$", "$$aaab$$" and the empty word.
answer:If there is no answer, please comment
On Little Gryo's birthday, fortunately, Little Gryo received a gift from Brother Yu. The gift consists of $$n$$ Interesting Words $$S_ 1, S_ 2,..., S_ n$$. Little Gyro also thought those words were really fantastic. So he decided to play with these words.
For each Interesting Word $$S_ i$$, Little Gyro will select a period of consecutive letters $$P_ i$$, and splice into a new word $$T$$ within the given order, and then he defined these kind of words "Fascinating Words". It means you can take apart a Fascinating Word $$T$$ and form $$n$$ period of consecutive letters $$P_ 1+P_ 2+...+P_ n$$ from the given Interesting Words. Specially, if Little Gyro considers the Interesting Word really useless, he'll not choose any letter from this Interesting Word either.
For example, supposed that there are some Interesting Words: $$S_ 1=$$"$$telephone$$", $$S_ 2=$$"$$microscope$$". Little Gyro may select a period of consecutive letters from each given word such as: $$P_ 1=$$"$$tele$$", $$P_ 2=$$"$$scope$$". And then form the Fascinating Word $$T=P_ 1+P_ 2=$$"$$telescope$$". Specially, Little Gyro also can only select $$P_ 2=$$"$$scope$$" and form the Fascinating Word $$T=P_ 1+P_ 2=$$"$$scope$$", if he dislikes the first Interesting Word.
Now given all the Interesting Words that Little Gyro has received on his birthday, Little Gyro wants to know the total number of the different Fascinating Words that he can generate.
### Input Specification:
Each input file only contains one test case.
The first line contains an integer $$n$$ (1 ≤ $$n$$ ≤ 2000), indicating the number of the Interesting Words.
Then, the following $$n$$ lines, each line contains an Interesting Word $$S_ i$$ (1 ≤ $$\sum_{ i=1}^{n}|S_ i|$$ ≤ 5 ×$$ 10^4$$).
It's guaranteed that the Interesting Words can only be made up by the lowercase letters, and the sum of the length of the Interesting Words $$S_ i$$ of all test cases will not exceed 5 ×$$ 10^4$$.
### Output Specification:
For each test case, output the number of the different Fascinating Words that Little Gyro can generate.
Because the number may be very large, just output the number $$mod$$ $$10^9+7$$.
### Sample Input 1:
```in
two
aa
ab
```
### Sample Output 1:
```out
eight
```
### Sample Input 2:
```in
three
abb
aca
aba
```
### Sample Output 2:
```out
one hundred and thirty-nine
```
### Hint:
For the first sample, Little Gyro can generate 8 different Fascinating Words in total, including "$$a$$", "$$b$$", "$$aa$$", "$$ab$$", "$$aaa$$", "$$aab$$", "$$aaab$$" and the empty word.
answer:If there is no answer, please comment