
"""simple docstring"""





from __future__ import annotations







def       __a	(						__lowerCamelCase,						__lowerCamelCase,						__lowerCamelCase,						__lowerCamelCase    ):
   UpperCAmelCase_	,  UpperCAmelCase_   :   Any     	=       m - 1, 0
   while i >= 0 and j < n:
      if key == mat[i][j]:
         print(f"""Key {key} found at row- {i + 1} column- {j + 1}"""    )
         return
      if key < mat[i][j]:
         i -= 1
      else:
         j += 1
   print(f"""Key {key} not found"""    )







def       __a	(						):
   UpperCAmelCase_   :   Dict     	=       [[2, 5, 7], [4, 8, 13], [9, 11, 15], [12, 17, 20]]
   UpperCAmelCase_   :   Optional[Any]     	=       int(input("Enter the element to be searched:"    )    )
   print(__lowerCamelCase    )
   search_in_a_sorted_matrix(__lowerCamelCase,						len(__lowerCamelCase    ),						len(mat[0]    ),						__lowerCamelCase    )


if __name__ == "__main__":
    import doctest

    doctest.testmod()
    main()







'''simple docstring'''

import bsa
import requests







def     __UpperCamelCase					(				_lowercase       )			->      dict[str, str]:
	return {
	    "name": soup.ha.a.text,
	    "genre": soup.find('span',					class_='genre'       ).text.strip(),
	    "rating": soup.strong.text,
	    "page_link": f'''https://www.imdb.com{soup.a.get("href"       )}''',
	}







def     __UpperCamelCase					(				_lowercase = 5       )			->      tuple:
	_lowercase       :							List[Any]  	=		int(float(_lowercase       )       )
	if num_movies < 1:
		return ()
	_lowercase       :							Any  	=		(
	    'https://www.imdb.com/search/title?title_type='
	    f'''feature&sort=num_votes,desc&count={num_movies}'''
	)
	_lowercase       :							Tuple  	=		bsa.BeautifulSoup(requests.get(_lowercase       ).content,					'html.parser'       )
	return tuple(
	    get_movie_data_from_soup(_lowercase       )
	    for movie in source.find_all('div',					class_='lister-item mode-advanced'       )       )


if __name__ == "__main__":
		import json

		_A					:     Optional[int]      =int(input('''How many movies would you like to see? '''))
		print(
		    ''', '''.join(
		        json.dumps(movie, indent=4) for movie in get_imdb_top_movies(num_movies)
		    )
		)
