#include #include #include #include #include #include #include #include #include using namespace std; int i,n; char sir[209]; int main() { //freopen("input","r",stdin); //freopen("output","w",stdout); gets(sir+1); n=strlen(sir+1); for(i=1;i<=n;i++) if(sir[i]=='Y'&&sir[i+1]=='a'&&sir[i+2]=='r'&&sir[i+3]=='d'&&sir[i+4]=='i') break; if(i<=n) printf("YES\n"); else printf("NO\n"); return 0; }