const fi='dulieu.inp';
fo='dulieu.out';
var f1,f2:text;
a:array[1..100]of integer;
i,n,t:integer;
begin
assign(f1,fi); reset(f1);
assign(f2,fo); rewrite(f2);
n:=0;
while not eofn(f1) do
begin
inc(n);
readln(f1,a[n]);
end;
t:=0;
for i:=1 to n do
t:=t+sqr(a[i]);
writeln(f2,t);
close(f1);
close(f2);
end.