#include using namespace std; int main() { string S,T; cin >> S >> T; if(string(S).find(T)==string::npos){ cout << 0 << endl; } else{ if(T.size()==1){ cout << -1 << endl; } else{ int ans = 0; int L = T.size(); for(int i=0;i+L-1