program abc;
var n,x: integer;
s: real;
begin
s:=0;
x:=1;
readln(n);
while x<=n do
s:=S+(exp(2*ln(sin(x)))+cos(sqrt(x)));
x:=x+1;
end;
writeln(s);
end.
program abc;
var n,x: integer;
s: real;
begin
s:=0;
x:=1;
readln(n);
while x<=n do
begin
s:=S+(exp(2*ln(sin(x)))+cos(sqrt(x)));
x:=x+1;
end;
writeln(s);
end.