def acu(a): if a > 2: s = a * a * a print(s) def fact(n): if n == 0: return 1 return n * fact(n-1) d = input() acu (d) print (fact(d))