program Sanya2263;
var x: integer;
begin
Read(x);
y=sqrt(sqr(x)*sqr(x)+sqrt(abs(x+1)));
Write(y);
end.
program Sanya2263;
var x: integer;
begin
Read(x);
y=sqrt(sqr(x)*sqr(x)+sqrt(abs(x+1)));
Write(y);
end.