f=lambda n:n and n*f(n-1) or 1 while 1:print f(input())