uses crt;
var n,i:integer;
s:real;
{------------------chuong-trinh-con----------------------}
function gt(var x:integer):real;
var t:longint;
tich:real;
begin
t:=1;
tich:=0;
for i:=1 to n do
begin
t:=t*i;
tich:=tich+1/t;
end;
gt:=tich;
end;
{---------------------chuong-trinh-chinh-------------------}
begin
clrscr;
write('nhap n='); readln(n);
s:=gt(n);
writeln('tong cua day la: ',s:4:2);
readln;
end.