program q_210540617_1;
var
	x : integer;
	y : real;
begin
	read(x);
	y := sqrt(x + 5) - sqrt(x + 3);
	writeln(y);
end.