



"""simple docstring"""

import os
def    __snake_case       (  )    ->					int:






				'''simple docstring'''
				SCREAMING_SNAKE_CASE	:       Dict 							=    os.path.dirname(os.path.realpath(__A    )    )
				SCREAMING_SNAKE_CASE	:       Union[str, Any] 							=    os.path.join(__A       ,		'triangle.txt'    )

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

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


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










"""simple docstring"""

def    __snake_case       (  __A			:	int = 100    )    ->					int:






				'''simple docstring'''
				SCREAMING_SNAKE_CASE	:       Any 							=    1
				SCREAMING_SNAKE_CASE	:       Optional[int] 							=    0
				for i in range(1       ,		num + 1    ):
								fact *= i

				for j in str(__A    ):
								result += int(__A    )

				return result


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





