Program HOC24;
const fi='M.TXT'
fo='L.TXT'
var f: text;
a,b,c,d,e: integer;
t: longint;
procedure ip;
begin
assign(f,fi);
reset(f);
readln(f,a);
readln(f,b);
readln(f,c);
readln(f,d);
read(f,e);
t:=a+b+c+d+e;
close(f);
end;
procedure out;
begin
assign(f,fo);
rewrite(f);
write(f,t);
close(f);
end;
begin
ip;
out;
end.