while 1: p=1 for i in range(1,input()+1):p*=i print p