#include<bits/stdc++.h>
using namespace std ;
int main()
{
string a , b ;
getline(cin , a) ;
getline(cin , b) ;
int l1 = a.length() , l2 = b.size() , cnt = 0 , szm = 0 , minn = 250 ;
string p = "" ;
bool flag = 0 ;
for(int i = 0 ; i < l1 ; i ++)
{
a[i] = tolower(a[i]) ;
}
for(int j = 0 ; j < l2 ; j ++)
{
if(b[j] == ' ')
{
if(p == a)
{
cnt ++ ;
minn = min(minn , szm) ;
flag = 1 ;
}
p = "" ;
szm = j + 1 ;
}
else
{
b[j] = tolower(b[j]) ;
p += b[j] ;
}
}
if(flag == 0) cout << -1 ;
else cout << cnt << " " << minn ;
return 0 ;
}
求看看哪里错了,不要现成的