import random
import sys

import numpy as np
from matplotlib import pyplot as plt
from matplotlib.colors import ListedColormap

A     :  Optional[Any]					     =       "Usage of script: script_name <size_of_canvas:int>"

A     :  Optional[Any]					     =       [0] * 1_00 + [1] * 10
random.shuffle(choice)


def      a__ (		__UpperCamelCase				):
      SCREAMING_SNAKE_CASE_          =  [[False for i in range(__UpperCamelCase				)] for j in range(__UpperCamelCase				)]
      return canvas


def      a__ (		__UpperCamelCase				):
      for i, row in enumerate(__UpperCamelCase				):
            for j, _ in enumerate(__UpperCamelCase				):
                  SCREAMING_SNAKE_CASE_          =  bool(random.getrandbits(1				)				)


def      a__ (		__UpperCamelCase				):
      SCREAMING_SNAKE_CASE_          =  np.array(__UpperCamelCase				)
      SCREAMING_SNAKE_CASE_          =  np.array(create_canvas(current_canvas.shape[0]				)				)
      for r, row in enumerate(__UpperCamelCase				):
            for c, pt in enumerate(__UpperCamelCase				):
                  SCREAMING_SNAKE_CASE_          =  __judge_point(
                      __UpperCamelCase     ,      current_canvas[r - 1 : r + 2, c - 1 : c + 2]				)

      SCREAMING_SNAKE_CASE_          =  next_gen_canvas
      del next_gen_canvas  # cleaning memory as we move on.
      SCREAMING_SNAKE_CASE_          =  current_canvas.tolist()
      return return_canvas


def      a__ (		__UpperCamelCase     ,      __UpperCamelCase				):
      SCREAMING_SNAKE_CASE_          =  0
      SCREAMING_SNAKE_CASE_          =  0
      # finding dead or alive neighbours count.
      for i in neighbours:
            for status in i:
                  if status:
                        alive += 1
                  else:
                        dead += 1

    # handling duplicate entry for focus pt.
      if pt:
            alive -= 1
      else:
            dead -= 1

      # running the rules of game here.
      SCREAMING_SNAKE_CASE_          =  pt
      if pt:
            if alive < 2:
                  SCREAMING_SNAKE_CASE_          =  False
            elif alive == 2 or alive == 3:
                  SCREAMING_SNAKE_CASE_          =  True
            elif alive > 3:
                  SCREAMING_SNAKE_CASE_          =  False
      else:
            if alive == 3:
                  SCREAMING_SNAKE_CASE_          =  True

      return state


if __name__ == "__main__":
      if len(sys.argv) != 2:
            raise Exception(usage_doc)

      A     :  List[Any]					     =       int(sys.argv[1])
      # main working structure of this module.
      A     :  int					     =       create_canvas(canvas_size)
      seed(c)
      A     ,       A     :  Optional[Any]					     =       plt.subplots()
      fig.show()
      A     :  str					     =       ListedColormap(["w", "k"])
      try:
            while True:
                  A     :  List[str]					     =       run(c)
                  ax.matshow(c, cmap=cmap)
                  fig.canvas.draw()
                  ax.cla()
      except KeyboardInterrupt:
            # do nothing.
            pass



from math import factorial


def      a__ (		__UpperCamelCase = 1_0_0				):
      return sum(int(__UpperCamelCase				) for x in str(factorial(__UpperCamelCase				)				)				)


if __name__ == "__main__":
      print(solution(int(input("Enter the Number: ").strip())))


