




import requests

__a          =			"""YOUR API KEY"""







def lowerCamelCase__       (      _lowercase			,						_lowercase = giphy_api_key				) ->    Dict:

     '''simple docstring'''


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


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





from math import ceil







def lowerCamelCase__       (      _lowercase = 1001				):

     '''simple docstring'''


     UpperCAmelCase_      :							Optional[Any]       =      1

     for i in range(1			,						int(ceil(n / 2.0				)				)				):
          UpperCAmelCase_      :							List[Any]       =      2 * i + 1
          UpperCAmelCase_      :							Optional[int]       =      2 * i
          UpperCAmelCase_      :							Any       =      total + 4 * odd**2 - 6 * even

     return total


if __name__ == "__main__":
     import sys

     if len(sys.argv) == 1:
          print(solution())
     else:
          try:
               __a          =			int(sys.argv[1])
               print(solution(n))
          except ValueError:
               print('Invalid entry - please enter a number')