

'''simple docstring'''
import random







class 							A__   :





  @staticmethod
  def 						A  (		_a				:     str			)     ->   tuple[list[int], list[int]]:





       '''simple docstring'''






       _SCREAMING_SNAKE_CASE							   =[ord(_a			) for i in text]
       _SCREAMING_SNAKE_CASE							   =[]
       _SCREAMING_SNAKE_CASE							   =[]
       for i in plain:
            _SCREAMING_SNAKE_CASE							   =random.randint(1							, 300			)
            _SCREAMING_SNAKE_CASE							   =(i + k) * k
            cipher.append(_a			)
            key.append(_a			)
       return cipher, key





  @staticmethod
  def 						A  (		_a				:     list[int]							, _a				:     list[int]			)     ->   str:





       '''simple docstring'''






       _SCREAMING_SNAKE_CASE							   =[]
       for i in range(len(_a			)			):
            _SCREAMING_SNAKE_CASE							   =int((cipher[i] - (key[i]) ** 2) / key[i]			)
            plain.append(chr(_a			)			)
       return "".join(_a			)


if __name__ == "__main__":
     lowerCamelCase			,   lowerCamelCase			:				Optional[Any] 			=					Onepad().encrypt("Hello")
     print(c, k)
     print(Onepad().decrypt(c, k))



'''simple docstring'''
import os


def 	_lowerCAmelCase (						)				->      List[str]:
     """simple docstring"""




     _SCREAMING_SNAKE_CASE							   =os.path.dirname(os.path.realpath(_UpperCamelCase    )    )
     _SCREAMING_SNAKE_CASE							   =os.path.join(_UpperCamelCase							,			'triangle.txt'    )

     with open(_UpperCamelCase    ) as f:
          _SCREAMING_SNAKE_CASE							   =f.readlines()

     _SCREAMING_SNAKE_CASE							   =[]
     for line in triangle:
          _SCREAMING_SNAKE_CASE							   =[]
          for number in line.strip().split(' '    ):
               numbers_from_line.append(int(_UpperCamelCase    )    )
          a.append(_UpperCamelCase    )

     for i in range(1							,			len(_UpperCamelCase    )    ):
          for j in range(len(a[i]    )    ):
               _SCREAMING_SNAKE_CASE							   =a[i - 1][j] if j != len(a[i - 1]    ) else 0
               _SCREAMING_SNAKE_CASE							   =a[i - 1][j - 1] if j > 0 else 0
               a[i][j] += max(_UpperCamelCase							,			_UpperCamelCase    )
     return max(a[-1]    )


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