while 1:i=j=1;exec"j*=i;i+=1;"*input();print j