


'''simple docstring'''






import shutil

import requests






def 						_A					(lowerCAmelCase__	:str					,    lowerCAmelCase__	:bool = False					,    lowerCAmelCase__	:str = "."		) ->	dict:




     '''simple docstring'''



     _a         =				'https://api.nasa.gov/planetary/apod'
     return requests.get(lowerCAmelCase__					,    params={'api_key': api_key}		).json()






def 						_A					(lowerCAmelCase__	:str					,    lowerCAmelCase__	:str = "."		) ->	dict:




     '''simple docstring'''



     _a         =				get_apod_data(lowerCAmelCase__		)
     _a         =				apod_data['url']
     _a         =				img_url.split('/'		)[-1]
     _a         =				requests.get(lowerCAmelCase__					,    stream=lowerCAmelCase__		)

     with open(f'{path}/{img_name}'					,    'wb+'		) as img_file:
          shutil.copyfileobj(response.raw					,    lowerCAmelCase__		)
     del response
     return apod_data






def 						_A					(lowerCAmelCase__	:str		) ->	dict:




     '''simple docstring'''



     _a         =				'https://images-api.nasa.gov/search'
     return requests.get(lowerCAmelCase__					,    params={'q': query}		).json()


if __name__ == "__main__":
 print(save_apod("YOUR API KEY"))
 a_       :     Tuple 							=     get_archive_data("apollo 2011")["collection"]["items"]
 print(apollo_aaaa_items[0]["data"][0]["description"])





'''simple docstring'''






def 						_A					(lowerCAmelCase__	:int					,    lowerCAmelCase__	:int		) ->	int:




     '''simple docstring'''



     if a < b:
          return gcd(lowerCAmelCase__					,    lowerCAmelCase__		)
     if a % b == 0:
          return b
     return gcd(lowerCAmelCase__					,    a % b		)






def 						_A					(lowerCAmelCase__	:int					,    lowerCAmelCase__	:int					,    lowerCAmelCase__	:int		) ->	int:




     '''simple docstring'''



     if y == 0:
          return 1
     _a         =				power(lowerCAmelCase__					,    y // 2					,    lowerCAmelCase__		) % mod
     _a         =				(temp * temp) % mod
     if y % 2 == 1:
          _a         =				(temp * x) % mod
     return temp






def 						_A					(lowerCAmelCase__	:int		) ->	bool:




     '''simple docstring'''



     _a         =				2
     while b < n:
          if gcd(lowerCAmelCase__					,    lowerCAmelCase__		) == 1 and power(lowerCAmelCase__					,    n - 1					,    lowerCAmelCase__		) != 1:
               return False
          b += 1
     return True


if __name__ == "__main__":
 a_       :     Any 							=     int(input("Enter number: ").strip())
 if is_carmichael_number(number):
  print(f'''{number} is a Carmichael Number.''')
 else:
  print(f'''{number} is not a Carmichael Number.''')

