Lensu finished the 9th grade with an average of 9.49 in mathematics and computer science. He was very eager to achieve a 10 average, because otherwise, he wouldn't get a scholarship next year. So, he proposed the following to his math and computer science teacher, Marlena:
- If you give me a 10 average for the 2022-2023 year, I will solve any problem you want during the summer vacation!
The teacher responded by saying that if he fails, she will give him a grade of 2 next year. Ambitious, Lensu accepted the condition.
Task
The teacher's problem is as follows:
Given the following expression:
and numbers .
Determine for how many natural numbers , , the inequality holds.
Help Lensu solve this problem, and he will reward you with 100 points and 100 IQ.
Input data
The first line will contain the number , and the following lines will each contain a natural number .
Output data
Print natural numbers, each on a new line, representing the answer to each number in order.
Constraints and clarifications
- It is guaranteed that there is at least one natural number that satisfies the relationship.
- can be represented on 64-bit signed integer.
- ;
- ;
- For 30 points, .
Example
stdin
3
12
100
11
stdout
4
15
3
Explanation
For the first number , there are 4 numbers that satisfy the inequality .