SUN YAT-SEN University is a world-class university. All college students at SYSU love their university, especially ITcarrot.
He wrote down a string only containing lowercase English letters.
A string $$$T$$$ is called good if and only if the string sysu is a subsequence of the string $$$T$$$.
He wants to find out the number of good substrings of the string he had written down.
Noted that:
One line, a string $$$S$$$($$$4\le |S| \le 10^6$$$) only contains lowercase English letters, denoting the string that ITcarrot wrote down.
A single integer, denoting the number of good substrings.
sunyatsenuniversity
10
syysuu
2
| Name |
|---|


