f=lambda n:n<2or n*f(n-1) while 1:print+f(input())