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