#include #include int main() { char S[128]; fgets(S, 128, stdin); if (strstr(S, "Yardi") != NULL) printf("YES\n"); else printf("NO\n"); return 0; }