#include<bits/stdc++.h> using namespace std; int main (){ string s,s1; getline(cin,s); cin>>s1; int p; if(p=s.find(s1,p+1)+1==0){ cout<<-1<<endl; } while(s.find(s1,p+1)!=-1){ p=s.find(s1,p+1); cout<<p+1<<endl; } return 0; } /************************************************************** Problem: 1591 User: luyanchen Language: C++ Result: Accepted Time:14 ms Memory:2076 kb ****************************************************************/