"""simple docstring"""






import os



def   a_						(					):
				UpperCAmelCase__             =							os.path.dirname(os.path.realpath(lowerCamelCase       )       )
				UpperCAmelCase__             =							os.path.join(lowerCamelCase					,			'triangle.txt'       )

				with open(lowerCamelCase       ) as f:
								UpperCAmelCase__             =							f.readlines()

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

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


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




"""simple docstring"""






def   a_						(					lowerCamelCase					,			lowerCamelCase       ):
				if a < 0 or b < 0:
								raise ValueError('the value of both inputs must be positive'       )

				UpperCAmelCase__             =							str(bin(lowerCamelCase       )       )[2:]  # remove the leading "0b"
				UpperCAmelCase__             =							str(bin(lowerCamelCase       )       )[2:]  # remove the leading "0b"

				UpperCAmelCase__             =							max(len(lowerCamelCase       )					,			len(lowerCamelCase       )       )

				return "0b" + "".join(
				    str(int(char_a == '1' and char_b == '1'       )       )
				    for char_a, char_b in zip(a_binary.zfill(lowerCamelCase       )					,			b_binary.zfill(lowerCamelCase       )       )       )


if __name__ == "__main__":
						import doctest

						doctest.testmod()



