easy-strings
Source: hackerearth
Difficulty: UNKNOWN_DIFFICULTY

The palindrome is a string that can be read the same way from left to right and from right to left. For example, strings "hanah", "2332" are palindromes, however the string "rahul" is not a palindrome. 

We define "Easy String" if it has an even length and the first half of this string is equal to the second half of this string. Like "dada" is an easy string because the first half "da" is equal to the second half "da", however the string "adda" is not an easy string because the first half "ad" is not equal to the second half "ad". 

If you are given a palindrome string of a particular length N, what is the maximal possible number of characters/symbols in an "easy string" that can be obtained by removing and changing the order of characters/symbols in the palindrome? 

Input

The first line of the sample input contains an integer T - the number of test cases.

Then, T lines follow.

Each line consists of a single integer N - the length of a palindrome.

Output

For each test case output a single integer - answer to the problem. 

Constraints

•   1 ≤ T ≤ 10000

•   1 ≤ N ≤ 1000000000

SAMPLE INPUT
2
2
4

SAMPLE OUTPUT
2
4


'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
n = int(input())
i = 0
while (i < n):
	tc = int(input())
	if (tc % 2 == 0):
		print(tc)
	else:
		print(tc - 1)
	i = i + 1 


'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
n = int(input())
i = 0
while (i < n):
	tc = int(input())
	if (tc % 2 == 0):
		print(tc)
	else:
		print(tc - 1)
	i = i + 1


'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
#print 'Hello World!'
n = int(input())
i = 0
while (i < n):
	tc = int(input())
	if (tc % 2 == 0):
		print(tc)
	else:
		print(tc - 1)
	i = i + 1


t=eval(input())
while t>0:
	n=eval(input())
	if n%2:
		print(n-1)
	else:
		print(n)
	t=t-1


for _ in range(eval(input())):
	l=eval(input())
	print(l-1 if l&1 else l)


t=int(input())
for i in range(t):
	n=int(input())
	if n%2==0:
		print(n)
	else:
		print((n-1))


import sys
def main():
	t = eval(input())
	a= []
	if t<1 or t>10000:
		sys.exit()
	else:
		for i in range(0,t):
			a.append(eval(input()))
			if a[-1]<1 or a[-1]>1000000000:
				sys.exit()
		for i in range(0,t):
			if a[i]%2 == 0:
				print(a[i])
			else:
				print(a[i]-1)


if __name__ == '__main__':
	main()