#include <bits/stdc++.h> using namespace std; char a[100000],b[100000]; int main() { cin>>a>>b; if(strstr(a,b)==NULL){ cout<<"no"; } else cout<<"yes"; return 0; }