#include #include #define maxn 105 using namespace std; int n; char a[maxn]; int solve() { for(int i=1;i<=n-4;i++) if(a[i]=='Y' && a[i+1]=='a' && a[i+2]=='r' && a[i+3]=='d' && a[i+4]=='i') return 1; return 0; } int main() { //freopen("yardi.in","r",stdin); //freopen("yardi.out","w",stdout); int ok; scanf("%s",a+1); n=strlen(a+1); ok=solve(); if(ok) printf("YES"); else printf("NO"); fclose(stdin); fclose(stdout); return 0; }