#include #include using namespace std; char HAYSTACK[248], NEEDLE[] = "Yardi"; int main() { cin >> HAYSTACK; cout << (strstr(HAYSTACK, NEEDLE) ? "YES" : "NO"); return 0; }