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
Output appears hereOne integer n (1 ≤ n ≤ 10¹⁸).
One integer.
10
23
1
0
Output appears here