



"""simple docstring"""

def    __snake_case       (  __A			:	int = 1000    )    ->					int:






				'''simple docstring'''
				return sum(i for i in range(__A    ) if i % 3 == 0 or i % 5 == 0    )


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










"""simple docstring"""

def    __snake_case       (  __A			:	int = 100    )    ->					int:






				'''simple docstring'''
				SCREAMING_SNAKE_CASE	:       Any 							=    1
				SCREAMING_SNAKE_CASE	:       Optional[int] 							=    0
				for i in range(1       ,		num + 1    ):
								fact *= i

				for j in str(__A    ):
								result += int(__A    )

				return result


if __name__ == "__main__":
							print(solution(int(input('Enter the Number: ').strip())))





