Codex is about to start and Ram has not done dinner yet. So, he quickly goes to hostel mess and finds a long queue in front of  food counter. But somehow he manages to take the food plate and reaches in front of the queue. The plates are divided into sections such that it has 2 rows and N columns.

Due to the crowd Ram knows that when he will get out of the queue the food will get mixed. So, he don't want to put food in two consecutive sections column wise
but he can put food in two consecutive sections row wise as spacing between the rows is good enough to take food out of the queue safely. If he doesn't like the food, he will not take food. You are given N and you have to tell the number of ways in which food can be taken without getting it mixed.

Input Format:
First line contains T which denotes number of test cases and each test case represents a single line containing the value of N. 

Output Format
Output the total ways for each input.

SAMPLE INPUT
2
1
3

SAMPLE OUTPUT
4
25

Explanation

Explanation:

Case 1:
Plate has 2 rows and 1 column each. So, Ram can
Put food in upper section.
Put food in lower section.
Put food in both section.
Do Not food in either section.

Case 2:
Plate has 2 rows and 3 columns. So, possible ways for one row are PNN, PNP, NNN, NPN, NNP where P represents food taken and N represents food not taken.
Total possible ways are 25 because a way to put food in 1 row can correspond 
to any of 5 ways on other row.
'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
from math import factorial
def ncr(n,r):
	if(n<0 or r<0):
		return 0
	elif(n<r):
		return 0
	else:
		return factorial(n)/(factorial(r)*factorial(n-r))
t = input()
for i in range(0,t):
	n = input()
	ans = 0
	p = 1
	i = 1
	while(p>0):
		ans = ans + p
		p = ncr(n,i)
		n = n - 1
		i = i + 1
	print ans*ans