Ответ: var  a, b: real;  begin  readln(a, b);  writeln((sqr(a) + sqr(b)) / 2);  writeln((System.Math.Abs(a) + System.Math.Abs(b)) / 2);end.