program Project1;
{$APPTYPE CONSOLE}
uses
SysUtils,
Math;
var
a, b, c, d, x, y, z: Real;
V: Real;
begin
Write('a=');
Readln(a);
Write('b=');
Readln(b);
Write('c=');
Readln(c);
Write('d=');
Readln(d);
Write('x=');
Readln(x);
Write('y=');
Readln(y);
Write('z=');
Readln(z);
if (sqr(c) <= sqr(x) + sqr(y) + sqr(z)) and
(sqr(x) + sqr(y) + sqr(z) <= sqr(d))
then
begin
V := a / max(x, max(y, z));
Writeln('Перше обчислення');
end;
if sqr(x) + sqr(y) + sqr(z) <= sqr(c) then
begin
V := b / min(x, min(y, z));
Writeln('Друге обчислення');
end
else
begin
V := (a + b) / 2;
Writeln('Третє обчислення');
end;
Write(V);
Readln;
end.
ICAgIHByb2dyYW0gUHJvamVjdDE7CiAgICAgCiAgICB7JEFQUFRZUEUgQ09OU09MRX0KCiAgICB1c2VzCiAgICBTeXNVdGlscywKICAgIE1hdGg7CiAgICAgCiAgICB2YXIKICAgIGEsIGIsIGMsIGQsIHgsIHksIHo6IFJlYWw7CiAgICBWOiBSZWFsOwogICAgIAogICAgYmVnaW4KICAgIFdyaXRlKCdhPScpOwogICAgUmVhZGxuKGEpOwogICAgV3JpdGUoJ2I9Jyk7CiAgICBSZWFkbG4oYik7CiAgICBXcml0ZSgnYz0nKTsKICAgIFJlYWRsbihjKTsKICAgIFdyaXRlKCdkPScpOwogICAgUmVhZGxuKGQpOwogICAgV3JpdGUoJ3g9Jyk7CiAgICBSZWFkbG4oeCk7CiAgICBXcml0ZSgneT0nKTsKICAgIFJlYWRsbih5KTsKICAgIFdyaXRlKCd6PScpOwogICAgUmVhZGxuKHopOwogICAgIAogICAgaWYgKHNxcihjKSA8PSBzcXIoeCkgKyBzcXIoeSkgKyBzcXIoeikpIGFuZAogICAgKHNxcih4KSArIHNxcih5KSArIHNxcih6KSA8PSBzcXIoZCkpCiAgICB0aGVuCiAgICBiZWdpbgogICAgViA6PSBhIC8gbWF4KHgsIG1heCh5LCB6KSk7CiAgIC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