program kvad;
var
a: array[1..3] of integer;
j,sum:integer;
begin
for j:= 1 to 3 do begin
read(a[j]);
sum:= sum + a[j];
end;
sum:= sqr(sum);
writeln(sum);
end.
var a,b,c:integer;
readln(a,b,c);
write(sqr(a+b+c));
program kvad;
var
a: array[1..3] of integer;
j,sum:integer;
begin
for j:= 1 to 3 do begin
read(a[j]);
sum:= sum + a[j];
end;
sum:= sqr(sum);
writeln(sum);
end.
var a,b,c:integer;
begin
readln(a,b,c);
write(sqr(a+b+c));
end.