


'''simple docstring'''
import os


def      a (     )    ->      int:



					'''simple docstring'''






					UpperCamelCase__  :str				   =					os.path.dirname(os.path.realpath(__a  )  )
					UpperCamelCase__  :Optional[int]				   =					os.path.join(__a					,   '''triangle.txt'''  )

					with open(__a  ) as f:
										UpperCamelCase__  :str				   =					f.readlines()

					UpperCamelCase__  :List[str]				   =					[]
					for line in triangle:
										UpperCamelCase__  :Optional[int]				   =					[]
										for number in line.strip().split(''' '''  ):
															numbers_from_line.append(int(__a  )  )
										a.append(__a  )

					for i in range(1					,   len(__a  )  ):
										for j in range(len(a[i]  )  ):
															UpperCamelCase__  :Dict				   =					a[i - 1][j] if j != len(a[i - 1]  ) else 0
															UpperCamelCase__  :List[Any]				   =					a[i - 1][j - 1] if j > 0 else 0
															a[i][j] += max(__a					,   __a  )
					return max(a[-1]  )


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



'''simple docstring'''
import requests
from bsa import BeautifulSoup


def      a (     __a = "AAPL"  )    ->      str:



					'''simple docstring'''






					UpperCamelCase__  :str				   =					f'''https://in.finance.yahoo.com/quote/{symbol}?s={symbol}'''
					UpperCamelCase__  :Tuple				   =					BeautifulSoup(requests.get(__a  ).text					,   '''html.parser'''  )
					UpperCamelCase__  :Tuple				   =					'''My(6px) Pos(r) smartphone_Mt(6px)'''
					return soup.find('''div'''					,   class_=class_  ).find('''span'''  ).text


if __name__ == "__main__":
		for symbol in "AAPL AMZN IBM GOOG MSFT ORCL".split():
				print(F"""Current {symbol:<4} stock price is {stock_price(symbol):>8}""")