Program n1;
var a: integer;
function is5(var x: integer): boolean;
begin
is5:=false;
while ( x<>0 ) do begin
if(x mod 10=5) then
begin
is5:=true;
break;
end;
x := x div 10;
end;
end;
begin
readln(a);
if is5(a) then write('есть')
else write('нет');
end.