We have n strings

which only contain

.

means it can match either

or

.
You need to find how many

strings are there which matches at least one of these strings.
输入描述:
The first line contains one integer
.
The next
lines, the
-th line contains a string
.
输出描述:
Output the answer modulo
in one line.