def f(a): if a<2:w=1 else:w=a*f(a-1) return w while 1:print f(input())