#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(); auto pos=s.find(t,0); while(pos!=string::npos){ int nxpos=pos+len; if(len<2){ if(1<=len)nxpos-=1; } else nxpos-=2; s.at(nxpos)='.'; pos=s.find(t,nxpos+1); ++ans; } if(ans&&len==1)ans=-1; cout<