Read problems statements in Mandarin Chinese  and Russian. 

Tuzik and his master Vanka are playing some unusual game. Initially there are two stacks of nuts. The first stack contains A nuts and the second contains B nuts. A player's move consists of two steps:

Choose one stack and eat it. 
Split the other stack into two new stacks. If a player can't split it he loses (if stack contains only 1 nut).

Tuzik starts the game. Tell who wins if both players play optimally.

------ Input ------ 

The first line of the input contains an integer T, denoting the number of test cases. The following T lines each contain 2 space-separated integers - A and B - for this test case.

------ Output ------ 

For each test case, output a single line containing the word "Tuzik" or "Vanka" (without quotes) depending on the winner in this test case.

------ Constraints ------ 

$1 ≤ T ≤ 1000$
$1 ≤ A, B ≤ 10^{4}$
$Subtask #1[26 points]:1 ≤ A, B ≤ 10$
$Subtask #2[30 points]:1 ≤ A, B ≤ 100$
$Subtask #3[44 points]: 1 ≤ A, B ≤ 10^{4}$

----- Sample Input 1 ------ 
2

1 1

1 2
----- Sample Output 1 ------ 
Vanka

Tuzik
----- explanation 1 ------ 
In the first test case Tuzik can't finish even the first move, so Vanka wins.
In the second test case Tuzik eats the first stack (with 1 nut), then splits the second stack (with 2 nuts) into two stacks, and Vanka loses.

Source: codechef | Difficulty: MEDIUM_HARD
Tags: Game theory


Solutions:
t = int(input())
for _ in range(t):
	(x, y) = list(map(int, input().strip().split()))
	if x % 2 == 0 or y % 2 == 0:
		print('Tuzik')
	else:
		print('Vanka')


def get_winner(a, b):
	if a % 2 and b % 2:
		return 'Vanka'
	return 'Tuzik'
for _ in range(int(input())):
	(A, B) = map(int, input().split())
	print(get_winner(A, B))


for p in range(int(input())):
	(a, b) = map(int, input().split())
	if a % 2 != 0 and b % 2 != 0:
		print('Vanka')
	else:
		print('Tuzik')


try:
	for _ in range(int(input())):
		(n, k) = map(int, input().split())
		if n % 2 == 0 or k % 2 == 0:
			print('Tuzik')
		else:
			print('Vanka')
except:
	pass


for _ in range(int(input())):
	(a, b) = map(int, input().split())
	if a % 2 == 0 or b % 2 == 0:
		print('Tuzik')
	else:
		print('Vanka')


for t in range(int(input())):
	(s1, s2) = map(int, input().split(' '))
	if s1 % 2 and s2 % 2:
		print('Vanka')
	else:
		print('Tuzik')


t = int(input())
while t > 0:
	(a, b) = map(int, input().split())
	if a % 2 == 1 and b % 2 == 1:
		print('Vanka')
	else:
		print('Tuzik')
	t -= 1


test = int(input())
for _ in range(test):
	(s1, s2) = map(int, input().split(' '))
	if s1 % 2 == 1 and s2 % 2 == 1:
		print('Vanka')
	else:
		print('Tuzik')


case = int(input())
for abhi in range(case):
	(A, B) = map(int, input().split())
	if A % 2 != 0 and B % 2 != 0:
		print('Vanka')
	else:
		print('Tuzik')


t = int(input())
for _ in range(t):
	(a, b) = map(int, input().split())
	if a % 2 == 1 and b % 2 == 1:
		print('Vanka')
	else:
		print('Tuzik')


test = int(input())
while test > 0:
	(a, b) = input().split(' ')
	(a, b) = (int(a), int(b))
	if a % 2 == 1 and b % 2 == 1:
		print('Vanka')
	else:
		print('Tuzik')
	test = test - 1


a = int(input())
for i in range(a):
	(b, c) = map(int, input().split())
	if b % 2 == 1 and c % 2 == 1:
		print('Vanka')
	else:
		print('Tuzik')


for _ in range(int(input())):
	(A, B) = map(int, input().split())
	v = t = 0
	if A % 2 == B % 2 == 0:
		t = 1
	elif A % 2 == 1 and B % 2 == 0 or (A % 2 == 0 and B % 2 == 1):
		t = 1
	if t:
		print('Tuzik')
	else:
		print('Vanka')


T = int(input())
for i in range(T):
	(a, b) = map(int, input().strip().split())
	if a % 2 != 0 and b % 2 != 0:
		print('Vanka')
	else:
		print('Tuzik')


try:
	from debug import debug, timer
except ImportError:
	pass
from sys import stdin
input = stdin.readline

def rii():
	return range(int(input().strip()))

def ii():
	return int(input().strip())

def mii():
	return map(int, input().strip().split(' '))

def lmii():
	return list(map(int, input().strip().split(' ')))

def si():
	return str(input().strip())

def getvals():
	while True:
		yield from input().split()

def tri(n):
	return n * (n + 1) // 2

def smallest_first(m, n):
	return (min(m, n), max(m, n))

def solve(a, b):
	return 'Vanka' if all([a & 1, b & 1]) else 'Tuzik'

def do_codechef():
	for t in rii():
		(a, b) = mii()
		print(solve(a, b))
do_codechef()
exit()


t = int(input())
ans = []
for _ in range(t):
	(a, b) = map(int, input().split())
	if a % 2 != 0 and b % 2 != 0:
		ans.append('Vanka')
	else:
		ans.append('Tuzik')
for _ in ans:
	print(_)


for u in range(int(input())):
	(x, y) = map(int, input().split())
	if x % 2 == 1 and y % 2 == 1:
		print('Vanka')
	else:
		print('Tuzik')


from numpy import *
for TC in range(int(input())):
	(A, B) = map(int, input().split())
	if A % 2 == 1 and B % 2 == 1:
		print('Vanka')
	else:
		print('Tuzik')


t = int(input())
for i in range(t):
	s = input().split()
	a = int(s[0])
	b = int(s[1])
	print('Vanka' if a % 2 != 0 and b % 2 != 0 else 'Tuzik')


for i in range(int(input())):
	l = list(map(int, input().split()))
	if l[0] % 2 != 0 and l[1] % 2 != 0:
		print('Vanka')
	else:
		print('Tuzik')


tests = int(input())
for test in range(tests):
	(stack1, stack2) = map(int, input().split())
	if stack1 % 2 != 0 and stack2 % 2 != 0:
		print('Vanka')
	else:
		print('Tuzik')


T = int(input().rstrip())
for i in range(T):
	(a, b) = list(map(int, input().rstrip().split()))
	if a % 2 == 1 and b % 2 == 1:
		print('Vanka')
	else:
		print('Tuzik')


t = int(input())
for _ in range(t):
	(n, q) = map(int, input().split())
	if n % 2 == 0 or q % 2 == 0:
		print('Tuzik')
	else:
		print('Vanka')


for _ in range(int(input())):
	(tuzik, vanka) = map(int, input().split())
	if tuzik % 2 == 1 and vanka % 2 == 1:
		print('Vanka')
	else:
		print('Tuzik')


t = int(input())
for i in range(t):
	(a, b) = map(int, input().split())
	if a % 2 != 0 and b % 2 != 0:
		print('Vanka')
	elif a % 2 == 0 and b % 2 != 0:
		print('Tuzik')
	elif a % 2 != 0 and b % 2 == 0:
		print('Tuzik')
	elif a % 2 == 0 and b % 2 == 0:
		print('Tuzik')


T = int(input())
ans = []
for _ in range(T):
	(A, B) = [int(i) for i in input().split()]
	if A % 2 == 0 or B % 2 == 0:
		ans.append('Tuzik')
	else:
		ans.append('Vanka')
for i in ans:
	print(i)


from math import *
for j in range(int(input())):
	(a, b) = map(int, input().split())
	if a % 2 == 0 or b % 2 == 0:
		print('Tuzik')
	else:
		print('Vanka')


test = int(input())
for _ in range(test):
	(n, m) = map(int, input().split())
	if n % 2 == 1 and m % 2 == 1:
		print('Vanka')
	else:
		print('Tuzik')


for _ in range(int(input())):
	(A, B) = map(int, input().split())
	if A % 2 == 0 and B % 2 == 0 or (A % 2 == 0 and B % 2 != 0) or (A % 2 != 0 and B % 2 == 0):
		print('Tuzik')
	else:
		print('Vanka')


t = int(input())
for tc in range(t):
	(n, m) = map(int, input().split())
	if n % 2 == 0 or m % 2 == 0:
		print('Tuzik')
	else:
		print('Vanka')


for _ in range(int(input())):
	(a, b) = map(int, input().split(' '))
	player = 'Tuzik'
	counter = 1
	while True:
		counter += 1
		if counter % 2 == 0:
			player = 'Vanka'
		else:
			player = 'Tuzik'
		x = a % 2
		y = b % 2
		if x == 1 and y == 1:
			break
		if x == 0 or y == 0:
			if x == 0:
				b = 0
				a = a - 1
				b = 1
			else:
				a = 0
				b = b - 1
				a = 1
	print(player)


t = int(input())
while t > 0:
	(a, b) = map(int, input().split())
	if a % 2 == 0 or b % 2 == 0:
		print('Tuzik', end='\n')
	else:
		print('Vanka', end='\n')
	t -= 1


for i in range(int(input())):
	(A, B) = map(int, input().split())
	if A % 2 == 1 and B % 2 == 1:
		print('Vanka')
	else:
		print('Tuzik')


def who_wins(tuzik, vanka):
	if tuzik % 2 == 1 and vanka % 2 == 1:
		return 'Vanka'
	else:
		return 'Tuzik'

def main():
	for t in range(int(input())):
		(tuzik, vanka) = map(int, input().split())
		print(who_wins(tuzik, vanka))

def test():
	inputs = [[1, 1], [1, 2]]
	for input in inputs:
		print(who_wins(*input))
main()


t = int(input())
for i in range(t):
	(a, b) = list(map(int, input().split()))
	if a % 2 == 0 or b % 2 == 0:
		print('Tuzik')
	else:
		print('Vanka')


def integer_list():
	return list(map(int, input().split()))

def main():
	try:
		if a % 2 == 0 or b % 2 == 0:
			print('Tuzik')
		else:
			print('Vanka')
	except Exception as e:
		print(e)
t = int(input())
for _ in range(t):
	(a, b) = integer_list()
	main()