


"""simple docstring"""
def   _a			( _SCREAMING_SNAKE_CASE = 1_000			)      ->			int:
							snake_case_          =						3
							snake_case_          =						0
							while a < n:
														if a % 3 == 0 or a % 5 == 0:
																					result += a
														elif a % 15 == 0:
																					result -= a
														a += 1
							return result


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







"""simple docstring"""
def   _a			( _SCREAMING_SNAKE_CASE			)      ->			list[int]:
							snake_case_          =						len(_SCREAMING_SNAKE_CASE			)
							for i in range(_SCREAMING_SNAKE_CASE			):
														for j in range(i + 1			,	_SCREAMING_SNAKE_CASE			):
																					if numbers[j] < numbers[i]:
																												snake_case_    ,  snake_case_          =						numbers[j], numbers[i]
							return numbers


if __name__ == "__main__":
				__SCREAMING_SNAKE_CASE							:      Optional[int]						=      input('Enter numbers separated by a comma:\n').strip()
				__SCREAMING_SNAKE_CASE							:      List[str]						=      [int(item) for item in user_input.split(',')]
				print(exchange_sort(unsorted))



