uses crt;
var a, b, x, y, newa, newb, newa2, newb2:integer;
begin
write('a='); read(a);
write('b='); read(b);
newa:=3*a; newb:= 3*b;
newa2:=sqr(a); newb2:=sqr(b);
if (a>0) and (b>0) then write('newa = ',newa,' | ', 'newb = ',newb)
else write('newa = ',newa2,' | ', 'newb = ',newb2);
end.