var
s: real;
n, i: integer;
begin
readln(n);
s := 0;
for i := 1 to n do
s := s + (i + 1) / i;
writeln(s);
end.