var a:array[1..10]of integer;
i,k:integer;
begin
for i:=1 to 10 do begin readln(k); a[i]:=sqr(k); end;
k:=0;
for i:=1 to 10 do k:=a[i]+k;
writeln(k);
end.
var a:array[1..10]of integer;
i,k:integer;
begin
for i:=1 to 10 do begin readln(k); a[i]:=sqr(k); end;
k:=0;
for i:=1 to 10 do k:=a[i]+k;
writeln(k);
end.