def fact(v):
  if (v==1): return 1
  else: return v*fact(v-1)
x=int(input("type in a number\n"))
print 'factorial of ',x,' is ',fact(x)

