Program programma;
Uses crt;
var i: integer;
a: array [1..1000] of integer;
Begin clrscr;
for i:=1 to 3 do
begin
write('a[',i,']=');
readln(a[i]);
end;
writeln;
for i:=1 to 3 do
begin
if a[i]<>0 then
begin
if a[i]<0 then a[i]:=(a[i])*(a[i])<br> else a[i]:=(sqr(a[i]))*a[i];
write(a[i],' ');
end
else
write(a[i],' ');
end;
End.