while 1: f=1;i=input() while i:f*=i;i-=1 print f