def Factorial(integer):
  """
  Factorial function
  """
  
  assert(integer >= 0)
  
  if integer <= 4:
    return [1, 1, 2, 6, 24][integer]
  
  factorial = 24
  mult = 5
  while mult <= integer:
    factorial *= mult
    mult += 1
  
  return factorial