#include <iostream>
using namespace std;
int main(){
long long a[70];
a[0] = 0;
a[1] = 1;
for(int i = 2; i <= 60; i ++ ){
a[i] = a[i-1] + a[i-2];
}
int n;
cin >> n;
int tmp;
while(n -- ){
cin >> tmp;
printf("Fib(%d) = %lld\n",tmp, a[tmp]);
}
return 0;
}