1 /*法一
2 #include<stdio.h>
3 int F(int n) {
4 if(n == 1 || n == 2) {
5 return 1;
6 }
7 else {
8 return F(n - 1) + F(n - 2);
9 }
10 }
11
12 int main( ) {
13 int m, n;
14 scanf("%d", &m);
15 while(m--) {
16 scanf("%d", &n);
17 printf("%d
", F(n));
18 }
19 return 0;
20 }
21 */
22 #include<stdio.h>
23 int main( ) {
24 int m, n, i, s1, s2;
25 scanf("%d", &m);
26 while(m--) {
27 scanf("%d", &n);
28 for(i = 3, s1 = s2 = 1; i <= n; i ++) {
29 s1 = s1 + s2;
30 s2 = s1 - s2;
31 }
32 printf("%d
", s1);
33 }
34 return 0;
35 }