Today is the 1st anniversary of BestCoder. Soda, the contest manager, gets a string s of length n. He wants to find three nonoverlapping substrings s[l1..r1], s[l2..r2], s[l3..r3] that:
1≤l1≤r1<l2≤r2<l3≤r3≤n
The concatenation of s[l1..r1], s[l2..r2], s[l3..r3] is "anniversary".