progam hotrotinhoc;
var a,b,d: integer;
s: longint;
begin
write('Nhap chieu dai :'); readln(a);
write('Nhap chieu rong :'); readln(b);
s:=a;
s:=s*b;
write('Dien tich hinh chu nhat la : ' ,s);
d:=sqr(a)+sqr(b);
d:=sqrt(d);
write('Duong chieu hinh chu nhat la :',d);
readln
end.