


'''simple docstring'''




def      _a		(lowercase__ :      int = 1_0_0_0	) -> int:






     """simple docstring"""
     __snake_case    			=	0
     __snake_case    			=	(n - 1) // 3
     total += ((terms) * (6 + (terms - 1) * 3)) // 2  # total of an A.P.
     __snake_case    			=	(n - 1) // 5
     total += ((terms) * (1_0 + (terms - 1) * 5)) // 2
     __snake_case    			=	(n - 1) // 1_5
     total -= ((terms) * (3_0 + (terms - 1) * 1_5)) // 2
     return total


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








'''simple docstring'''




def      _a		(lowercase__ :      int	) -> int:






     """simple docstring"""
     return 1 if input_a == 0 else 0





def      _a		() -> None:






     """simple docstring"""
     assert not_gate(0	) == 1
     assert not_gate(1	) == 0


if __name__ == "__main__":
       print(not_gate(0))
       print(not_gate(1))




