
def 					lowerCAmelCase__     (    SCREAMING_SNAKE_CASE_ = 20	)							->						int:


			try:
						lowerCAmelCase__ : List[str]   =						int(_SCREAMING_SNAKE_CASE	)
			except (TypeError, ValueError):
						raise TypeError('Parameter n must be int or castable to int.'	)
			if n <= 0:
						raise ValueError('Parameter n must be greater than or equal to one.'	)
			lowerCAmelCase__ : Union[str, Any]   =						0
			while 1:
						i += n * (n - 1)
						lowerCAmelCase__ : List[Any]   =						0
						for j in range(2			,				_SCREAMING_SNAKE_CASE	):
									if i % j != 0:
												lowerCAmelCase__ : Dict   =						1
												break
						if nfound == 0:
									if i == 0:
												lowerCAmelCase__ : Union[str, Any]   =						1
									return i
			return None


if __name__ == "__main__":
					print(F"""{solution() = }""")






import os



def   __lowercase  ( )					->  int:


      '''simple docstring'''


      SCREAMING_SNAKE_CASE						=		os.path.dirname(os.path.realpath(_SCREAMING_SNAKE_CASE      )      )
      SCREAMING_SNAKE_CASE						=		os.path.join(_SCREAMING_SNAKE_CASE					,		"""triangle.txt"""      )

      with open(_SCREAMING_SNAKE_CASE      ) as in_file:
            SCREAMING_SNAKE_CASE						=		[[int(_SCREAMING_SNAKE_CASE      ) for i in line.split()] for line in in_file]

      while len(_SCREAMING_SNAKE_CASE      ) != 1:
            SCREAMING_SNAKE_CASE						=		triangle.pop()
            SCREAMING_SNAKE_CASE						=		triangle[-1]
            for j in range(len(_SCREAMING_SNAKE_CASE      ) - 1      ):
                  curr_row[j] += max(last_row[j]					,		last_row[j + 1]      )
      return triangle[0][0]


if __name__ == "__main__":
      print(solution())


