Good Numbers

3.9

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

You are given a number N. 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 T (1T100), denoting the number of test cases.
Each of the next T lines contains a single integer, denoting the value of N (1N105).

Output Format

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

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

?