program RombCalculation;
var
d1, d2, perimeter, area: real;
begin
writeln('d1: ');
readln(d1);
writeln('d2: ');
readln(d2);
perimeter := 4 * sqrt((d1 / 2) * (d1 / 2) + (d2 / 2) * (d2 / 2));
area := (d1 * d2) / 2;
writeln('Периметр: ', perimeter);
writeln('Площадь: ', area);
end.