Solve the programming task below in a Python markdown code block.
find the sum of the even fibonacci numbers till the given number(it is the value not index).
 INPUT:
T test cases
next T lines consists of a number n.
OUTPUT:
Output the sum value.

0<t<10
2<n<10^20
Example:
if n=10
the numbers which are less than 10 are 2 and 8 in fibonacci.
sum = 2+8=10

SAMPLE INPUT
2
10
100

SAMPLE OUTPUT
10
44