#include <iostream>
#include<cstring>
using namespace std;
int main()
{
string a,b;
cin >> a >> b;
cout << a.find(b)+1;
return 0;
}
#include<cstring>
using namespace std;
int main()
{
string a,b;
cin >> a >> b;
cout << a.find(b)+1;
return 0;
}