
"""simple docstring"""




from __future__ import annotations

lowerCAmelCase__				=					[-10, -5, 0, 5, 5.1, 11, 13, 21, 3, 4, -21, -10, -5, -1, 0]
lowerCAmelCase__				=					[-5, 0, 5, 5.1, 11, 13, 21, -1, 4, -1, -10, -5, -1, 0, -1]



def 							_lowerCamelCase			(			__a     ):
		SCREAMING_SNAKE_CASE_    			=			[]
		SCREAMING_SNAKE_CASE_    			=			len(_lowerCAmelCase     )

		for i in range(_lowerCAmelCase     ):
				SCREAMING_SNAKE_CASE_    			=			-1
				for j in range(i + 1,				_lowerCAmelCase     ):
						if arr[i] < arr[j]:
								SCREAMING_SNAKE_CASE_    			=			arr[j]
								break
				result.append(_lowerCAmelCase     )
		return result



def 							_lowerCamelCase			(			__a     ):
		SCREAMING_SNAKE_CASE_    			=			[]
		for i, outer in enumerate(_lowerCAmelCase     ):
				SCREAMING_SNAKE_CASE_    			=			-1
				for inner in arr[i + 1 :]:
						if outer < inner:
								SCREAMING_SNAKE_CASE_    			=			inner
								break
				result.append(_lowerCAmelCase     )
		return result



def 							_lowerCamelCase			(			__a     ):
		SCREAMING_SNAKE_CASE_    			=			len(_lowerCAmelCase     )
		SCREAMING_SNAKE_CASE_    			=			[]
		SCREAMING_SNAKE_CASE_    			=			[-1] * arr_size

		for index in reversed(range(_lowerCAmelCase     )     ):
				if stack:
						while stack[-1] <= arr[index]:
								stack.pop()
								if not stack:
										break
				if stack:
						SCREAMING_SNAKE_CASE_    			=			stack[-1]
				stack.append(arr[index]     )
		return result


if __name__ == "__main__":
						from doctest import testmod
						from timeit import timeit

						testmod()
						print(next_greatest_element_slow(arr))
						print(next_greatest_element_fast(arr))
						print(next_greatest_element(arr))

						lowerCAmelCase__				=					(
						    'from __main__ import arr, next_greatest_element_slow, '
						    'next_greatest_element_fast, next_greatest_element'
						)
						print(
						    'next_greatest_element_slow():',
						    timeit('next_greatest_element_slow(arr)', setup=setup),
						)
						print(
						    'next_greatest_element_fast():',
						    timeit('next_greatest_element_fast(arr)', setup=setup),
						)
						print(
						    '     next_greatest_element():',
						    timeit('next_greatest_element(arr)', setup=setup),
						)



import requests
from bsa import BeautifulSoup





def 						_lowerCAmelCase							(     _lowerCAmelCase = "AAPL"			)    ->						str:


						'''simple docstring'''






						__snake_case				=		F'''https://in.finance.yahoo.com/quote/{symbol}?s={symbol}'''
						__snake_case				=		BeautifulSoup(requests.get(_lowerCAmelCase			).text   ,						"html.parser"			)
						__snake_case				=		"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}''')





