var
x1, x2, x3, x4: real;
begin
writeln('введите 4 числа ');
read(x1, x2, x3, x4);
if (x1 < x2) and (x2 < x3) and (x3 < x4) then
writeln('квадраты = ', sqr(x1), ' ', sqr(x2), ' ', sqr(x3), ' ', sqr(x4))
else writeln('полусумма = ', (x1 + x2 + x3 + x4) / 2);
end.