"""simple docstring"""


def       lowerCamelCase_			( __lowerCAmelCase = 1000    )							-> int:




						'''simple docstring'''



						lowerCamelCase__ =0
						lowerCamelCase__ =(n - 1) // 3
						total += ((terms) * (6 + (terms - 1) * 3)) // 2  # total of an A.P.
						lowerCamelCase__ =(n - 1) // 5
						total += ((terms) * (10 + (terms - 1) * 5)) // 2
						lowerCamelCase__ =(n - 1) // 15
						total -= ((terms) * (30 + (terms - 1) * 15)) // 2
						return total


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



"""simple docstring"""


from __future__ import annotations





def       lowerCamelCase_			( __lowerCAmelCase    )							-> int | float:




						'''simple docstring'''



						lowerCamelCase__ =sorted(__lowerCAmelCase    )
						lowerCamelCase__ =len(__lowerCAmelCase    )
						lowerCamelCase__ =length >> 1
						return (
						    (sorted_list[mid_index] + sorted_list[mid_index - 1]) / 2
						    if length % 2 == 0
						    else sorted_list[mid_index]
						)





def       lowerCamelCase_			( )							-> Tuple:




						'''simple docstring'''



						import doctest

						doctest.testmod()


if __name__ == "__main__":
	main()


