var s,t:string; begin read(s); t:='Yardi'; if pos(t,s)<>0 then write('YES') else write('NO'); readln; end.