f=lambda x:x*f(x-1)if x else 1 while 1:print(f(int(input())))