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