#include <iostream>
using namespace std;
bool isLetterInString(string &s, char &c){
for(auto &i: s)
if(i == c)
return true;
return false;
}
void solve(){
char k;
string L;
cin >> L >> k;
isLetterInString(L, k) ? cout << "yes" : cout << "no";
int main(){
solve();
#include <iostream>
using namespace std;
bool isLetterInString(string &s, char &c){
for(auto &i: s)
if(i == c)
return true;
return false;
}
void solve(){
char k;
string L;
cin >> L >> k;
isLetterInString(L, k) ? cout << "yes" : cout << "no";
}
int main(){
solve();
}