while 1:p=x=1;exec("p*=x;x+=1;"*int(input()));print(p)