P9853 [HackerEarth] fun with fibonacci
普及
题目描述

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

输入格式

见题面

输出格式

见题面

样例输入
2 10 100 SAMPLE
样例输出
10 44