LearnPy Hub
← Arena
EasyRating 900

Multiples of 3 or 5

Print the sum of all positive numbers below n that are multiples of 3 or 5.

Input

One integer n (1 ≤ n ≤ 10¹⁸).

Output

One integer.

Sample 1

Input
10
Output
23

Sample 2

Input
1
Output
0
solution.py
Output appears here
Multiples of 3 or 5 · Python Arena problem · LearnPy Hub