while 1:a=b=1;exec"b*=a;a+=1;"*input();print b