import math num = int(raw_input()) a = num * math.factorial(num) print a