You are given a string of length N and two alphabets x and y. The string consists of only lowercase English alphabets.
You have to count the total number of distinct sub-sequences of the string starting with x and ending with y.
Note:
Input format
First line contains an integer N.
Second line contains a string of length N.
Third line contains two space-separated alphabets x and y.
Output format
Print a single integer representing the number of sub-sequences modulo 109+7.
Constraints
1≤N≤105
String consists of only lowercase English letters.
x and y are lowercase English letters.
The subsequences are:
1. ab (using index 0,1)
2. ab (using index 0,3)
3. abb
4. acb
5. abcb