Professor Oak has many quirks. For instance, he thinks that the multiples of 13 are unlucky: 13, 26, 39, 52, …. Moreover, for some reason he also dislikes numbers like 174, “because” its distance to the next century is a (strictly positive) multiple of 13: . For the same reason he disaproves numbers like 1061 or 48: , . Note that some numbers like 1287 are doubly disliked: , .
Given a number , can you count how many numbers between 1 and are liked?
Input consists of several natural numbers , each one between 1 and .
For every , print the quantity of numbers in liked by Professor Oak.
Input
9 13 100 200 1000000000 1000000000000000
Output
8 11 86 171 858461534 858461538461534