Pagini recente » Cod sursa (job #1317876) | Cod sursa (job #6677) | Cod sursa (job #1206782) | Cod sursa (job #1309136) | Cod sursa (job #6752)
Cod sursa(job #6752)
program fact;
var n2,n5,nn,i,p,n,aux:longint;
fin,fout:text;
{*---------MAIN-----------------*}
begin
assign(fin,'fact.in');
assign(fout,'fact.out');
reset(fin);
rewrite(fout);
readln(fin,p);
n:=0;
if p > 9 then
begin
aux:=p div 10;
n:=5;
for i:=1 to aux do
n:=n+40;
end;
if p mod 10 > 0 then for i:=1 to p mod 10 do
n:=n+5;
writeln(fout,n);
close(fout);
end.