Rohan has a special love for the matrices especially for the first element of the matrix. Being good at Mathematics, he also loves to solve different problem on the matrices. So one day he started to multiply the matrix with the original matrix. The elements of the original matrix is given by

**a _{00}=1 , a_{01}=1, a_{10}=1, a_{11}=0**.

Given the power of the matrix,

**Input:**

The first line contain an integer T denoting the no of test cases . Then T test cases follow .Each test case contains an integer , n.

**Output:**

Print the first element of the matrix i.e. **a _{10}**.

1<=T<=10

1<=n<=10^{12}

**Example:**

**Input:**

2

3

8

**Output:**

2

21

**Explanation:**

Take the cube of the original matrix i.e **a ^{3}** and print the first element(

Similarly for the second case , the first element(

akhayrutdinov | 30 |

Prateek Gole | 30 |

krushna.sharma | 29 |

StarkMaverick | 28 |

ujjwalgarg | 26 |

Lam Ngoc Pham | 405 |

All Is Well | 399 |

Divvya Sinha | 367 |

Prateek Gole | 347 |

skull tone | 310 |

akhayrutdinov | 3847 |

sanjay05 | 3366 |

Michael Riegger | 2015 |

Jasleen Kaur 2 | 2012 |

Quandray | 1949 |