#include using namespace std; int main(){ cin.tie(0),ios::sync_with_stdio(false); string s,t; cin>>s>>t; int ans=0,len=t.size(),dif=(len>=2?2:len>=1?1:0); auto pos=s.find(t,0); while(pos!=string::npos){ s.at(pos+len-dif)='.'; pos=s.find(t,pos+len-dif+1); ++ans; } if(ans&&len==1)ans=-1; cout<