program n_1;
var a, i, min: integer;
begin
read(a);
min:=0
for i:=1 to 10 do
if (a<min) and (a mod 5=0) then
min:=a;
end;
writeln(min);
end.
program n_1;
var a, i, min: integer;
begin
read(a);
min:=0
for i:=1 to 10 do
begin
if (a<min) and (a mod 5=0) then
min:=a;
end;
writeln(min);
end.