#include <stdio.h> #include <string.h> int main() { char s[130]; gets(s); if (strstr(s, "Yardi")) printf("YES\n"); else printf("NO\n"); return 0; }