🏡 index : github.com/captn3m0/codechef.git

---
category_name: school
problem_code: TRISQ
problem_name: 'Fit Squares in Triangle'
languages_supported:
    - ADA
    - ASM
    - BASH
    - BF
    - C
    - 'C99 strict'
    - CAML
    - CLOJ
    - CLPS
    - 'CPP 4.3.2'
    - 'CPP 4.9.2'
    - CPP14
    - CS2
    - D
    - ERL
    - FORT
    - FS
    - GO
    - HASK
    - ICK
    - ICON
    - JAVA
    - JS
    - 'LISP clisp'
    - 'LISP sbcl'
    - LUA
    - NEM
    - NICE
    - NODEJS
    - 'PAS fpc'
    - 'PAS gpc'
    - PERL
    - PERL6
    - PHP
    - PIKE
    - PRLG
    - PYTH
    - 'PYTH 3.4'
    - RUBY
    - SCALA
    - 'SCM guile'
    - 'SCM qobi'
    - ST
    - TCL
    - TEXT
    - WSPC
max_timelimit: '1'
source_sizelimit: '50000'
problem_author: devuy11
problem_tester: anudeep2011
date_added: 24-12-2014
tags:
    - cakewalk
    - cook55
    - devuy11
    - geometry
    - recursion
editorial_url: 'http://discuss.codechef.com/problems/TRISQ'
time:
    view_start_date: 1424025000
    submit_start_date: 1424025000
    visible_start_date: 1424025000
    end_date: 1735669800
    current: 1492507608
layout: problem
---
All submissions for this problem are available.###  Read problems statements in [Mandarin Chinese](http://www.codechef.com/download/translated/COOK55/mandarin/TRISQ.pdf) and [Russian](http://www.codechef.com/download/translated/COOK55/russian/TRISQ.pdf) as well.

What is the maximum number of squares of size **2x2** that can be fit in a right angled isosceles triangle of base **B**.

One side of the square must be parallel to the base of the isosceles triangle.

Base is the shortest side of the triangle

### Input 

First line contains **T**, the number of test cases.

Each of the following **T** lines contains 1 integer **B**.

### Output

Output exactly T lines, each line containing the required answer.

### Constraints

1 ≤ **T** ≤ 103

1 ≤ **B** ≤ 104

<pre>
<h3>Sample Input</h3>
11
1
2
3
4
5
6
7
8
9
10
11
<h3>Sample Output </h3>
0
0
0
1
1
3
3
6
6
10
10
</pre>