while 1:i=a=1;exec"a=4*a-2*a/i;i+=1;"*input();print a