For a string s consisting of only "a" and "b" , let f(s) be the string obtained by replacing all "a" in s with "aa" and "b" with "ab". For example, f("aba") = "aaabaa".
Given strings s and t, determine the smallest non-negative integer k where t is a consecutive substring of fk(s).
Note that fk is defined by:
The first and second lines contain string s and t respectively (1≤∣s∣,∣t∣≤2⋅105).
Strings s and t consist of only characters "a" and "b".
A single integer denotes the minimum k.
If k does not exists, print "-1" instead.