import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone
{
public static void main
(String[] args
) { double f = 1;
double p = 1;
Scanner in
=new Scanner
(System.
in); int n = in.nextInt();
for(int i = 1; i <= n; i++)
{
f = f * i;
p *= ( 1 / f + 2);
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CiAKY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB7CgkJZG91YmxlIGYgPSAxOwoJCWRvdWJsZSBwID0gMTsKCQlTY2FubmVyIGluPW5ldyBTY2FubmVyKFN5c3RlbS5pbik7CgkJaW50IG4gPSBpbi5uZXh0SW50KCk7Cglmb3IoaW50IGkgPSAxOyBpIDw9IG47IGkrKykKCXsgCgkJZiA9IGYgKiBpOwoJCXAgKj0gKCAxIC8gZiAgKyAyKTsKCX0KIFN5c3RlbS5vdXQucHJpbnRsbihwKTsKCX0KfQoJ