Good Numbers

3.9

23 votes
Very-Easy, Mathematics, Basic Math, Simple-math, Mathematics
Problem

You are given a number . Determine the number of positive even integers that are smaller than or equal to it and are not a multiple of 4.

Input Format

The first line contains a single integer (), denoting the number of test cases.
Each of the next lines contains a single integer, denoting the value of ().

Output Format

Print lines, where the $i$-th line contains the answer to the -th test case.

Sample Input
4
3
7
8
11
Sample Output
1
2
2
3
Time Limit: 2
Memory Limit: 256
Source Limit:
Explanation

For N=3, only 2 follows the given conditions, so answer is 1.

For N=11, numbers 2, 6 and 10 follows the given conditions, so answer is 3.

Editor Image

?