'''simple docstring'''




import webbrowser
from sys import argv
from urllib.parse import parse_qs, quote

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

if __name__ == "__main__":
						__lowercase          =  '''%20'''.join(argv[1:]) if len(argv) > 1 else quote(str(input('''Search: ''')))

						print('''Googling.....''')

						__lowercase          =  f'https://www.google.com/search?q={query}&num=100'

						__lowercase          =  requests.get(
						    url,
						    headers={'''User-Agent''': str(UserAgent().random)},
						)

						try:
												__lowercase          =  (
												    BeautifulSoup(res.text, '''html.parser''')
												    .find('''div''', attrs={'''class''': '''yuRUbf'''})
												    .find('''a''')
												    .get('''href''')
												)

						except AttributeError:
												__lowercase          =  parse_qs(
												    BeautifulSoup(res.text, '''html.parser''')
												    .find('''div''', attrs={'''class''': '''kCrYT'''})
												    .find('''a''')
												    .get('''href''')
												)['''url'''][0]

						webbrowser.open(link)







"""simple docstring"""


def     a__    (    __SCREAMING_SNAKE_CASE )	->	int:
		__lowerCAmelCase:       Optional[Any]          =			1
		for i in range(1					, num + 1 ):
				fact *= i
		return fact






def     a__    (    __SCREAMING_SNAKE_CASE )	->	int:
		__lowerCAmelCase:       List[str]          =			0
		while number > 0:
				__lowerCAmelCase:       Any          =			number % 1_0
				sum_of_digits += last_digit
				__lowerCAmelCase:       List[Any]          =			number // 1_0  # Removing the last_digit from the given number
		return sum_of_digits






def     a__    (    __SCREAMING_SNAKE_CASE = 1_0_0 )	->	int:
		__lowerCAmelCase:       Tuple          =			factorial(__SCREAMING_SNAKE_CASE )
		__lowerCAmelCase:       Optional[int]          =			split_and_add(__SCREAMING_SNAKE_CASE )
		return result


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


