var a: integer;
begin
readln(a);
if (a mod 8=0) and (a mod 10=0) then writeln('Yes') else writeln ('no')
end.
var a: integer;
begin
readln(a);
if (a mod 8=0) and (a mod 10=0) then writeln('Yes') else writeln ('no')
end.