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