var s1,s2:string; begin readln(s2); s1:='Yardi'; if pos(s1,s2)>0 then writeln('YES') else writeln('NO'); end.