#include <bits/stdc++.h>
using namespace std;
int main()
{
string a,b;
getline(cin,a);
getline(cin,b);
for(int i = 0 ; i< a.length() ; i++) a[i] = tolower(a[i]);
for(int i = 0 ; i< b.length() ; i++) b[i] = tolower(b[i]);
a = ' '+ a +' ';
b = ' '+ b +' ';
if(b.find(a) == string::npos)
{
cout << -1 << endl;
return 0;
}
else
{
int beta = b.find(a);
int s = 0;
int alpha = b.find(a);
while(beta != string::npos)
{
s++;
beta = b.find(a,beta+1);
}
printf("%d ",s);
printf("%d",alpha);
}
return 0;
}
find,若找不到则返回nops(一个奇奇怪怪的值)