AMZRCK - Amz Rock

To many people in many cultures, music is an important part of their way of life.

AmzMohammad is a fan of rock music. and he have n rock tracks (labelled from 1 to n) now he wants to select a playlist.

In his opinion a good playlist is one that have no two successive tracks.

In how many ways?

Input

First line is the number of test cases.

Each test case in an integer n (number of tracks.)

Output

Output number of good playlists he can make.

Answer is less than 1000000000. it is the only constraint :)

Example

Input:
2
1
2

Output:
2
3

note: a good play list may consist 0 track :)

note 2: how many Persian rock tracks we have?


Added by:mohammad mahmoodi
Date:2012-08-01
Time limit:0.100s-1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ASM64 GAWK BASH CSHARP GO ICON ICK WHITESPACE
Resource:AmzMohammad ( Mohammad Mahmoodi )

hide comments
2012-08-22 16:23:23 B.R.ARVIND
one line says "AmzMohammad is a fan of rock music. and he have n rock tracks (labled from 1 to n)",another says
"a good play list may consist 0 track :) " !!!!! can the playlist have 0th track ?????

2012-08-08 06:11:17 :D
No, incorrect. Also don't ask for so many results, because it spoils the problem quite a lot.
2012-08-07 18:36:21 Sanchit Manchanda


Last edit: 2012-08-08 07:38:57
2012-08-03 04:39:01 david_8k
A little weird statement but nice concept indeed.
2012-08-02 15:22:44 spock
please give some strong test cases..
the answer for 8 is 54??

Last edit: 2012-08-02 15:23:38
2012-08-01 18:27:28 NeW AcP
got acc.

Last edit: 2012-08-02 09:03:37
2012-08-01 09:17:00 (Tjandra Satria Gunawan)(曾毅昆)
The challenge is to solve this problem with BrainF**k programming language! ;)
2012-08-01 07:11:12 Vaishali Behl
is the answer to n = 4,
8?
---------
yes ! it is !

Last edit: 2012-08-01 06:45:22
2012-08-01 07:11:12 mohammad mahmoodi
answer is less than 1000000000. it is the only constraint :)
2012-08-01 07:11:12 Damian Straszak
It's a set. Answer fits in long long.
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.