Problem D: Multiples of 3 and 5

Problem D: Multiples of 3 and 5

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 3  Solved: 1
[Submit] [Status] [Web Board] [Creator:]

Description

If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.

Given a natural number N,Find the sum of all the multiples of 3 or 5 below N.

Input

Input a natural number N ( N  60000 )

Output

Print the answer.

Sample Input Copy

10

Sample Output Copy

23