program hotrotinhoc_hoc24;
const fi='hcn.inp';
fo='hcn.out';
var f: text;
a,b: integer;
procedure ip;
begin
assign(f,fi);
reset(f);
readln(f,a);
read(f,b);
close(f);
end;
procedure out;
begin
assign(f,fo);
rewrite(f);
writeln(f,'Chu vi hinh chu nhat la : ',(a+b)*2);
write(f,'Dien tich hinh chu nhat la : ',a*b);
close(f);
end;
begin
ip;
out;
end.