


def 			_a      (    __UpperCamelCase = 1_0_0_0			):
     a_     :  Optional[Any]				      =     0
     a_     :  List[Any]				      =     (n - 1) // 3
     total += ((terms) * (6 + (terms - 1) * 3)) // 2  # total of an A.P.
     a_     :  Any				      =     (n - 1) // 5
     total += ((terms) * (1_0 + (terms - 1) * 5)) // 2
     a_     :  int				      =     (n - 1) // 1_5
     total -= ((terms) * (3_0 + (terms - 1) * 1_5)) // 2
     return total


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









'''simple docstring'''

import unittest
import warnings

from datasets.utils import experimental




@experimental
def    snake_case__     (  )			->       Union[str, Any]:





			'''simple docstring'''






			return "success"





class __magic_name__(						unittest.TestCase      ):






						def       __lowerCAmelCase(   self						:						List[Any]       ):



									'''simple docstring'''






									with warnings.catch_warnings(record=__UpperCamelCase       ) as w:
												warnings.simplefilter("""always"""       )
												self.assertEqual(dummy_function()					,   """success"""       )
									self.assertEqual(len(__UpperCamelCase       )					,   1       )