#include <bits/stdc++.h>
using namespace std;
int n, m, i, j, k;
char s[55], t[8][8]={"and", "not", "that", "the", "you"};
int main(){
scanf("%d", &n);
for(i=1; i<=n; i++){
scanf("%s", s);
for(j=0; j<5; j++){
if(strcmp(s, t[j]) == 0) m = 1;
}//找到就打标记
}
printf("%s\n", m?"Yes":"No");
return 0;
}