It’s universally acknowledged that there’re innumerable trees in the campus of HUST.
Note that when we transfer the string to a integer, we ignore the leading zeros. For example, the string “00055” will be seen as 55. And also pay attention that two ways are considered different if the removed trees are different. The result can be very large, so printing the answer (mod 1000000007) is enough. And additionally, Xiao Ming can't cut down all trees.
The first line contains a single integer K, which indicates that the tree string is the initial string repeating K times.
The second line is the initial string S.
A single integer, the number of ways to remove trees mod 1000000007.