Score : 500 points
Snuke received a positive integer N from Takahashi. A positive integer m is called a favorite number when the following condition is satisfied:
Find all favorite numbers and print the sum of those.
Input is given from Standard Input in the following format:
N
Print the answer.
8
10
There are two favorite numbers: 3 and 7. Print the sum of these, 10.
1000000000000
2499686339916
Watch out for overflow.