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