





from __future__ import annotations

def      UpperCAmelCase_    (    _UpperCAmelCase							:list[int]				)	->				int:
     '''simple docstring'''


     if not nums:
          return 0
     A_          =       nums[0]
     A_          =       0
     for num in nums[1:]:
          A_   ,    A_          =       (
              max_excluding + num,
              max(_UpperCAmelCase  ,						_UpperCAmelCase				),
          )
     return max(_UpperCAmelCase  ,						_UpperCAmelCase				)


if __name__ == "__main__":
      import doctest

      doctest.testmod()










import requests

a__      :     Any         =		'YOUR API KEY'

def      UpperCAmelCase_    (    _UpperCAmelCase							:str  ,						_UpperCAmelCase							:str = giphy_api_key				)	->				list:
     '''simple docstring'''


     A_          =       '''+'''.join(query.split()				)
     A_          =       f'https://api.giphy.com/v1/gifs/search?q={formatted_query}&api_key={api_key}'
     A_          =       requests.get(_UpperCAmelCase				).json()['''data''']
     return [gif["url"] for gif in gifs]


if __name__ == "__main__":
      print('\n'.join(get_gifs('space ship')))



