#include char txt[ 102 ] ; int i ; int main() { gets( txt ) ; while ( txt[i]!= '\0' ) { if( txt[i] == 'Y' ) { if( txt[ i + 1 ] == 'a' ) { if ( txt [ i + 2 ] == 'r' ) { if( txt [ i + 3 ] == 'd' ) { if(txt [ i + 4 ] == 'i' ) { printf("YES\n") ; return 0 ; } else i = i + 5 ; continue ; } else i = i + 4 ; continue ; } else i = i + 3 ; continue ; } else i = i + 2 ; continue ; } else ++ i ; continue ; } printf("NO\n") ; return 0 ; }