var s:string;
c:char;
begin
readln(s,c);
if pos(c,s)<>0 then writeln('est') else writeln('netu');
end.
var s:string;
c:char;
begin
readln(s,c);
if pos(c,s)<>0 then writeln('est') else writeln('netu');
end.