
"""simple docstring"""




def 						__magic_name__		(				UpperCamelCase    :		int = 1000    )    ->	int:
    a__    = 0
    a__    = (n - 1) // 3
    total += ((terms) * (6 + (terms - 1) * 3)) // 2  # total of an A.P.
    a__    = (n - 1) // 5
    total += ((terms) * (10 + (terms - 1) * 5)) // 2
    a__    = (n - 1) // 15
    total -= ((terms) * (30 + (terms - 1) * 15)) // 2
    return total


if __name__ == "__main__":
    print(F'''{solution() = }''')




"""simple docstring"""




import shutil

import requests



def 						__magic_name__		(				UpperCamelCase    :		str       ,		UpperCamelCase    :		bool = False       ,		UpperCamelCase    :		str = "."    )    ->	dict:
    a__    = 'https://api.nasa.gov/planetary/apod'
    return requests.get(UpperCamelCase       ,		params={'api_key': api_key}    ).json()



def 						__magic_name__		(				UpperCamelCase    :		str       ,		UpperCamelCase    :		str = "."    )    ->	dict:
    a__    = get_apod_data(UpperCamelCase    )
    a__    = apod_data['url']
    a__    = img_url.split('/'    )[-1]
    a__    = requests.get(UpperCamelCase       ,		stream=UpperCamelCase    )

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



def 						__magic_name__		(				UpperCamelCase    :		str    )    ->	dict:
    a__    = 'https://images-api.nasa.gov/search'
    return requests.get(UpperCamelCase       ,		params={'q': query}    ).json()


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


