




def    UpperCAmelCase__	(  lowerCamelCase = 1000 ):
  return sum(i for i in range(lowerCamelCase ) if i % 3 == 0 or i % 5 == 0 )


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









def    UpperCAmelCase__	(  lowerCamelCase ):
  lowercase     :Optional[int]   						=    len(lowerCamelCase )
  if n in (0, 1):
    return 0
  return sum(query * (n - i - 1) for i, query in enumerate(sorted(lowerCamelCase ) ) )


if __name__ == "__main__":
     import doctest

     doctest.testmod()



