#include<bits/stdc++.h> using namespace std; int main() { string s,s1; cin>>s>>s1; int a=-1; a=s.find(s1); if(a !=-1) cout<<"yes"; else cout<<"no"; }