At regular competition Vladik and Valera won a and b candies respectively. Vladik offered 1 his candy to Valera. After that Valera gave Vladik 2 his candies, so that no one thought that he was less generous. Vladik for same reason gave 3 candies to Valera in next turn.

More formally, the guys take turns giving each other one candy more than they received in the previous turn.

This continued until the moment when one of them couldn’t give the right amount of candy. Candies, which guys got from each other, they don’t consider as their own. You need to know, who is the first who can’t give the right amount of candy.


-----Input-----

Single line of input data contains two space-separated integers a, b (1 ≤ a, b ≤ 10^9) — number of Vladik and Valera candies respectively.


-----Output-----

Pring a single line "Vladik’’ in case, if Vladik first who can’t give right amount of candy, or "Valera’’ otherwise.


-----Examples-----
Input
1 1

Output
Valera

Input
7 6

Output
Vladik



-----Note-----

Illustration for first test case:

[Image]

Illustration for second test case:

[Image]

Difficulty: EASY
Tags: Implementation

Complete search
Skill types: Complete search

Starter code:

Solutions:
from collections import deque, Counter
from itertools import combinations, permutations
from math import sqrt
import unittest

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

def read_int_array():
	return [int(i) for i in input().strip().split(' ')]
(a, b) = read_int_array()
step = 1
while a >= 0 and b >= 0:
	if step % 2 == 1:
		a -= step
	else:
		b -= step
	step += 1
print('Vladik' if a < 0 else 'Valera')


candy = [int(i) for i in input().split()]
i = 0
kov = 0
while True:
	i += 1
	if candy[kov] < i:
		print('Vladik' if kov == 0 else 'Valera')
		break
	candy[kov] -= i
	kov = 1 - kov


(a, b) = map(int, input().split())
i = 1
while True:
	if i % 2:
		if a < i:
			print('Vladik')
			break
		a -= i
	else:
		if b < i:
			print('Valera')
			break
		b -= i
	i += 1


import sys
import math
(a, b) = map(int, input().split())
for i in range(10000000):
	if i % 2 == 0:
		a -= i + 1
		if a < 0:
			print('Vladik')
			break
	else:
		b -= i + 1
		if b < 0:
			print('Valera')
			break


(a, b) = map(int, input().split())
cur = 1
while True:
	if a - cur < 0:
		print('Vladik')
		exit()
	a -= cur
	cur += 1
	if b - cur < 0:
		print('Valera')
		exit()
	b -= cur
	cur += 1


(vladik1, valera1) = input().split()
vladik = int(vladik1)
valera = int(valera1)
i = 0
candy = 0
while True:
	i = i + 1
	candy = candy + 1
	if i % 2 != 0:
		if vladik >= candy:
			vladik = vladik - candy
		else:
			print('Vladik')
			break
	elif i % 2 == 0:
		if valera >= candy:
			valera = valera - candy
		else:
			print('Valera')
			break


(n, m) = map(int, input().split())
i = 1
while True:
	if i > n:
		print('Vladik')
		break
	else:
		n -= i
		i += 1
	if i > m:
		print('Valera')
		break
	else:
		m -= i
		i += 1


(vl, va) = list(map(int, input().split()))
n1 = int(vl ** 0.5)
d = 1 + 4 * va
n2 = int((-1 + d ** 0.5) / 2)
if n1 > n2:
	print('Valera')
else:
	print('Vladik')


(x, y) = map(int, input().split())
g = 1
while True:
	x -= g
	if x < 0:
		print('Vladik')
		break
	y -= g + 1
	if y < 0:
		print('Valera')
		break
	g += 2


(a, b) = [int(item) for item in input().split()]
k = 0
while 1:
	if k + 1 + 2 * k * (k + 1) // 2 > a:
		print('Vladik')
		break
	if 2 * ((k + 2) * (k + 1) // 2) > b:
		print('Valera')
		break
	k += 1


r = ('Vladik', 'Valera')
(a, b) = map(int, input().split())
c = 1
while True:
	if c % 2:
		a -= c
	else:
		b -= c
	c += 1
	if a < 0 or b < 0:
		break
print(r[c % 2])


(vlad, val) = (0, 0)

def get_input():
	global vlad, val
	first_arr = [int(x) for x in input().split()]
	(vlad, val) = (first_arr[0], first_arr[1])

def main():
	get_input()
	global vlad, val
	given = 1
	while 1:
		if given % 2 == 1:
			vlad = vlad - given
		else:
			val = val - given
		given = given + 1
		if vlad < 0:
			print('Vladik')
			return
		elif val < 0:
			print('Valera')
			return
main()


(a, b) = map(int, input().split())
cnt = 0
while a >= 0 and b >= 0:
	cnt += 1
	if cnt % 2 == 0:
		b = b - cnt
	else:
		a = a - cnt
if cnt % 2 == 0:
	print('Valera')
else:
	print('Vladik')


(n, m) = map(int, input().split())
i = 1
flag = 0
while n >= 0 and m >= 0:
	if flag == 0:
		n -= i
		flag = 1
	else:
		m -= i
		flag = 0
	i += 1
if flag == 0:
	print('Valera')
else:
	print('Vladik')


s = input().split()
(a, b) = (int(s[0]), int(s[1]))
an = int(a ** 0.5)
bn = int(b ** (1 / 3))
while True:
	if bn * (bn + 1) == b:
		break
	elif bn * (bn + 1) > b:
		bn -= 1
		break
	bn += 1
print('Vladik' if an <= bn else 'Valera')


(a, b) = map(int, input().split())
x = True
i = 1
while x == True:
	if i % 2 == 1:
		a -= i
	else:
		b -= i
	i += 1
	if a < 0 or b < 0:
		print('Vladik' if a < 0 else 'Valera')
		x = False


(a, b) = list(map(int, input().split()))
for i in range(1, 10 ** 10):
	if i % 2 != 0:
		if a < i:
			print('Vladik')
			break
		else:
			a -= i
	elif b < i:
		print('Valera')
		break
	else:
		b -= i


(a, b) = map(int, input().split())
i = 1
s = ''
while i:
	if i % 2 != 0 and a >= i:
		a = a - i
		i += 1
		s = 'Valera'
	elif i % 2 == 0 and b >= i:
		b = b - i
		i += 1
		s = 'Vladik'
	else:
		i = 0
print(s)


import math

def Main():
	(a, b) = map(int, input().split())
	a = int(math.sqrt(a))
	if b >= a * (a + 1):
		print('Vladik')
	else:
		print('Valera')
Main()


import math
(n, k) = map(int, input().split())
x = math.floor(math.sqrt(n))
y = x * (x + 1)
if y <= k:
	print('Vladik')
else:
	print('Valera')


a = list(map(int, input().split()))
for i in range(99999):
	a[i % 2] -= i + 1
	if a[i % 2] < 0:
		break
print('Vladik' if a[0] < 0 else 'Valera')


from sys import stdin
for line in stdin:
	cadena = line.splitlines()
	break
a = cadena[0].split()[0]
b = cadena[0].split()[1]
i = 0
dulces = [int(a), int(b)]
cont = 1
while dulces[i] >= cont:
	dulces[i] = dulces[i] - cont
	i += 1
	cont += 1
	if i > 1:
		i = 0
if i == 0:
	print('Vladik')
else:
	print('Valera')


(a, b) = map(int, input().split())
i = 1
c = [a, b]
while c[(i + 1) % 2] >= i:
	c[(i + 1) % 2] -= i
	i += 1
if i % 2 == 1:
	print('Vladik')
else:
	print('Valera')


cnt = list(map(int, input().split()))
nxt = 1
who = 0
while cnt[who] >= nxt:
	cnt[who] -= nxt
	nxt += 1
	who ^= 1
print('Vladik' if who == 0 else 'Valera')


a = list(map(int, input().split()))
r = 0
s = 1
while a[0] >= 0 and a[1] >= 0:
	if r == 0:
		a[0] -= s
		r = 1
	else:
		a[1] -= s
		r = 0
	s += 1
if a[0] < 0:
	print('Vladik')
else:
	print('Valera')


(vd, va) = map(int, input().split())

def sm(n):
	return n * n + n
from math import sqrt as S
a = int(S(vd))
b = 0
lo = 0
hi = 10 ** 9
while lo <= hi:
	mid = (lo + hi) // 2
	if sm(mid) <= va:
		ans = mid
		lo = mid + 1
	else:
		hi = mid - 1
b = ans
if a > b:
	print('Valera')
else:
	print('Vladik')


m = input()
m = m.split(' ')
a = int(m[0])
b = int(m[1])
counter = 1
while a >= 0 and b >= 0:
	a = a - counter
	if a < 0 and b >= 0:
		ans = 'Vladik'
	counter = counter + 1
	b = b - counter
	counter = counter + 1
	if b < 0 and a >= 0:
		ans = 'Valera'
print(ans)


(a, b) = (int(x) for x in input().split())
i = 1
while True:
	if i % 2:
		a -= i
		if a < 0:
			print('Vladik')
			break
	else:
		b -= i
		if b < 0:
			print('Valera')
			break
	i += 1


from math import sqrt
(a, b) = map(int, input().split())
la = max(1, int(sqrt(a)) - 1)
lb = max(1, int((-1 - sqrt(1 + 4 * b)) / 2) - 1)
while la * la <= a:
	la += 1
la -= 1
while lb * (lb + 1) <= b:
	lb += 1
lb -= 1
if la <= lb:
	print('Vladik')
else:
	print('Valera')


x = [int(s) for s in input().split(' ')]
i = 0
while x[i % 2] > i:
	x[i % 2] -= i + 1
	i += 1
if i % 2 == 0:
	print('Vladik')
else:
	print('Valera')


(a, b) = map(int, input().split())
for n in range(1, 10 ** 40):
	if n % 2 != 0:
		a = a - n
	elif n % 2 == 0:
		b = b - n
	if a < 0:
		print('Vladik')
		break
	if b < 0:
		print('Valera')
		break


def VladikAndCourtsey(a, b):
	step = 1
	while True:
		if step % 2 == 0:
			if b < step:
				return 'Valera'
			b -= step
		else:
			if a < step:
				return 'Vladik'
			a -= step
		step += 1
(a, b) = [int(x) for x in input().split()]
print(VladikAndCourtsey(a, b))


(a, b) = list(map(int, input().split()))
turn = True
now = 1
while True:
	if turn:
		if a < now:
			print('Vladik')
			return
		else:
			a -= now
	elif b < now:
		print('Valera')
		return
	else:
		b -= now
	now += 1
	turn = not turn


(a, b) = map(int, input().split())
i = 2
j = 1
while True:
	a -= j
	if a < 0:
		print('Vladik')
		break
	b -= i
	if b < 0:
		print('Valera')
		break
	i += 2
	j += 2


import math as m
[a, b] = [int(x) for x in input().split()]
x = m.floor(m.sqrt(a))
y = m.floor((m.sqrt(4 * b + 1) - 1) / 2)
print('Vladik' if x <= y else 'Valera')


import itertools
(a, b) = map(int, input().split())
(c1, c2) = (0, 0)
(i1, i2) = (0, 0)
for i in itertools.count(1, 2):
	c1 += i
	if c1 > a:
		break
	i1 += 1
for i in itertools.count(2, 2):
	c2 += i
	if c2 > b:
		break
	i2 += 1
print('Valera' if c1 >= c2 else 'Vladik')


import sys
import math
import bisect
import itertools

def solve(a, b):
	cnt = 0
	while True:
		cnt += 1
		if cnt % 2 == 1:
			if a < cnt:
				return True
			else:
				a -= cnt
		elif b < cnt:
			return False
		else:
			b -= cnt
	return -1

def main():
	(a, b) = map(int, input().split())
	if solve(a, b):
		print('Vladik')
	else:
		print('Valera')
main()


(a, b) = map(int, input().split())
i = 1
while True:
	if a >= i:
		a -= i
		i += 1
	else:
		print('Vladik')
		exit(0)
	if b >= i:
		b -= i
		i += 1
	else:
		print('Valera')
		exit(0)


(a, b) = map(int, input().split())
n = int(a ** 0.5)
if n * (n + 1) <= b:
	print('Vladik')
else:
	print('Valera')


def candy(a, b):
	cur = 1
	while True:
		if cur & 1 == 1:
			a -= cur
			if a < 0:
				return 'Vladik'
		else:
			b -= cur
			if b < 0:
				return 'Valera'
		cur += 1
(a, b) = list(map(int, input().split()))
print(candy(a, b))


(a, b) = list(map(int, input().split()))
cnt = 0
while True:
	cnt += 1
	a -= cnt
	if a < 0:
		print('Vladik')
		break
	cnt += 1
	b -= cnt
	if b < 0:
		print('Valera')
		break


(n, m) = map(int, input().split())
a = n
b = m
for i in range(1, n + m + 1):
	if i % 2 != 0:
		a -= i
	else:
		b -= i
	if a < 0 or b < 0:
		break
if a < 0:
	print('Vladik')
else:
	print('Valera')


R = lambda : map(int, input().split())
(a, b) = R()
p = 0
while True:
	if p % 2 != 0:
		if a >= p:
			a -= p
			p += 1
		else:
			exit(print('Vladik'))
	elif b >= p:
		b -= p
		p += 1
	else:
		exit(print('Valera'))


def main():
	(a, b) = list(map(int, input().split()))
	cur = 1
	while True:
		if a < cur:
			print('Vladik')
			break
		a -= cur
		if b < cur + 1:
			print('Valera')
			break
		b -= cur + 1
		cur += 2
try:
	while True:
		main()
except EOFError:
	pass


(vla, val) = (int(x) for x in input().split())
can = 1
while True:
	if vla < can:
		print('Vladik')
		break
	vla -= can
	can += 1
	if val < can:
		print('Valera')
		break
	val -= can
	can += 1


(a, b) = map(int, input().split())
i = 1
j = 1
c1 = c2 = 0
while a - c1 >= 2 * i - 1:
	c1 += 2 * i - 1
	i += 1
while b - c2 >= 2 * j:
	c2 += 2 * j
	j += 1
if i > j:
	print('Valera')
else:
	print('Vladik')


(a, b) = map(int, input().split())
N = 100005
rec = [0] * N
rec[1] = 1
rec[2] = 2
for i in range(3, N):
	rec[i] = rec[i - 2] + i
for i in range(1, 100005):
	if i % 2 != 0:
		if a - rec[i] < 0:
			print('Vladik')
			exit()
	elif b - rec[i] < 0:
		print('Valera')
		exit()


(a, b) = map(int, input().split())
na = int(pow(a, 0.5))
nb = int((pow(1 + 4 * b, 0.5) - 1) / 2)
if na > nb:
	print('Valera')
else:
	print('Vladik')


T = [int(x) for x in input().split()]
i = 1
while 1:
	if i % 2 == 1:
		if T[0] < 0:
			print('Vladik')
			break
		T[0] -= i
		i += 1
	else:
		if T[1] < 0:
			print('Valera')
			break
		T[1] -= i
		i += 1


import math
inp = input()
inp = inp.split(' ')
a = int(inp[0])
b = int(inp[1])
left = 0
right = 100000
while left < right:
	mid = (left + right + 1) // 2
	if mid ** 2 <= a:
		left = mid
	else:
		right = mid - 1
a = left
left = 0
right = 100000
while left < right:
	mid = (left + right + 1) // 2
	if mid * (mid + 1) // 2 - int(math.ceil(mid // 2)) ** 2 <= b:
		left = mid
	else:
		right = mid - 1
b = left // 2
if a <= b:
	print('Vladik')
else:
	print('Valera')


import sys
inf = 1 << 30

def solve():
	(a, b) = map(int, input().split())
	top = inf
	btm = 0
	while top - btm > 1:
		mid = (top + btm) // 2
		if mid ** 2 <= a:
			btm = mid
		else:
			top = mid
	aout = top
	top = inf
	btm = 0
	while top - btm > 1:
		mid = (top + btm) // 2
		if mid * (mid + 1) <= b:
			btm = mid
		else:
			top = mid
	bout = top
	if aout <= bout:
		print('Vladik')
	else:
		print('Valera')
solve()


(a, b) = map(int, input().split())
cur = 1
while a >= 0 and b >= 0:
	if a < cur:
		print('Vladik')
		break
	a -= cur
	cur += 1
	if b < cur:
		print('Valera')
		break
	b -= cur
	cur += 1


import sys

def solve():
	(a, b) = map(int, input().split())
	for i in range(10 ** 9):
		if 2 * i + 1 > a:
			print('Vladik')
			return
		else:
			a -= 2 * i + 1
		if 2 * i + 2 > b:
			print('Valera')
			return
		else:
			b -= 2 * i + 2

def __starting_point():
	solve()
__starting_point()


import itertools
from math import sqrt

def main():
	(n, m) = [int(v) for v in input().split()]
	a1 = int(sqrt(n))
	if a1 * a1 + a1 > m:
		print('Valera')
	else:
		print('Vladik')
main()


(m, n) = map(int, input().split())
s = 1
while 1:
	m -= s
	s += 1
	if m < 0:
		print('Vladik')
		break
	n -= s
	s += 1
	if n < 0:
		print('Valera')
		s += 1
		break


(a, b) = map(int, input().split())
x = 1
while True:
	a -= x
	x += 1
	if a < 0:
		print('Vladik')
		quit()
	b -= x
	x += 1
	if b < 0:
		print('Valera')
		quit()


(a, b) = list(map(int, input().split()))
x = int(a ** 0.5)
y = int((-1 + (1 + 4 * b) ** 0.5) / 2)
if y >= x:
	print('Vladik')
else:
	print('Valera')


(vl, va) = map(int, input().split())
c = 1
while vl >= 0 and va >= 0:
	vl -= c
	if vl < 0:
		print('Vladik')
		break
	va -= c + 1
	if va < 0:
		print('Valera')
		break
	c += 2


(a, b) = map(int, input().split())
i = 1
while True:
	if a - i < 0:
		print('Vladik')
		exit()
	elif b - i - 1 < 0:
		print('Valera')
		exit()
	a -= i
	b = b = b - i - 1
	i += 2


(a, b) = map(int, input().split())
x = 1
while True:
	if x % 2 == 1:
		if a >= x:
			a -= x
		else:
			print('Vladik')
			break
	elif b >= x:
		b -= x
	else:
		print('Valera')
		break
	x += 1


(a, b) = [int(x) for x in input().split()]
n = 0
s = 0
m = 0
i = 1
while s + i <= a:
	s += i
	i += 2
	n += 1
s = 0
i = 2
while s + i <= b:
	s += i
	i += 2
	m += 1
if n > m:
	print('Valera')
else:
	print('Vladik')


(a, b) = map(int, input().split())
for i in range(1, int(1000000.0)):
	if i & 1:
		if a < i:
			exit(print('Vladik'))
		a -= i
	else:
		if b < i:
			exit(print('Valera'))
		b -= i


candy = [int(i) for i in input().split()]
g = 0
i = 0
kov = 0
while g < 1:
	i += 1
	if candy[kov] >= i:
		candy[kov] -= i
		kov = 1 - kov
	else:
		g += 1
		if kov == 0:
			print('Vladik')
		else:
			print('Valera')


from sys import stdin, stdout
(a, b) = map(int, stdin.readline().split())
cnt = 1
while True:
	a -= cnt
	cnt += 1
	b -= cnt
	cnt += 1
	if a < 0:
		stdout.write('Vladik')
		break
	if b < 0:
		stdout.write('Valera')
		break


(a, b) = map(int, input().split())
i = 1
c = 1
while i <= max(a, b):
	if c == 1:
		if a > 0:
			a = a - i
			c = 0
		else:
			break
	elif b > 0:
		b = b - i
		c = 1
	else:
		break
	i += 1
if c == 0:
	print('Valera')
else:
	print('Vladik')


import math
(a, b) = map(int, input().split())
if int(math.sqrt(a)) <= int(math.sqrt(b + 0.25) - 0.5):
	print('Vladik')
else:
	print('Valera')


(a, b) = map(int, input().strip().split())
x = 1
while a >= 0 and b >= 0:
	a -= x
	x += 1
	b -= x
	x += 1
if a < 0:
	print('Vladik')
else:
	print('Valera')


inputs = [int(i) for i in input().split()]

def candies(vladik_a, valera_a):
	amount = 0
	toggle = True
	while True:
		amount += 1
		if vladik_a < 0:
			return 'Vladik'
		if valera_a < 0:
			return 'Valera'
		if toggle:
			vladik_a -= amount
			toggle = False
		else:
			valera_a -= amount
			toggle = True
print(candies(inputs[0], inputs[1]))


(a, b) = map(int, input().split())
s = int(a ** (1 / 2))
t = int((-1 + (1 + 4 * b) ** (1 / 2)) / 2)
if s > t:
	print('Valera')
else:
	print('Vladik')


ls = list(map(int, input().split()))
i = 1
flag = 0
while True:
	if i > ls[flag]:
		break
	ls[flag] -= i
	i += 1
	flag = 1 - flag
if flag == 0:
	print('Vladik')
else:
	print('Valera')


from math import *
(a, b) = map(int, input().split())
n = int(sqrt(a))
m = n * (n + 1)
if b >= m:
	print('Vladik')
else:
	print('Valera')


def solve(a, b):
	v = True
	i = 1
	while True:
		if v:
			if a >= i:
				a -= i
			else:
				return 'Vladik'
		elif b >= i:
			b -= i
		else:
			return 'Valera'
		i += 1
		v ^= 1

def main():
	(a, b) = list(map(int, input().split()))
	print(solve(a, b))
main()


(a, b) = map(int, input().split())
for i in range(1, int(1000000000.0 + 1)):
	if i % 2 == 0:
		if i > b:
			print('Valera')
			quit()
		else:
			b -= i
	elif i > a:
		print('Vladik')
		quit()
	else:
		a -= i


ab = list(map(int, input().split()))
step = 1
while 1:
	if step % 2 == 1:
		if ab[0] - step < 0:
			answer = 'Vladik'
			break
		ab[0] -= step
	else:
		if ab[1] - step < 0:
			answer = 'Valera'
			break
		ab[1] -= step
	step += 1
print(answer)


(a, b) = map(int, input().strip().split())
sub = 1
while 1:
	if a >= sub:
		a -= sub
	else:
		print('Vladik')
		break
	if b >= sub + 1:
		b -= sub + 1
	else:
		print('Valera')
		break
	sub += 2


(a, b) = map(int, input().split())
c = a + b
a1 = 0
b1 = 0
for i in range(1, c, 2):
	if a >= i:
		a1 += 1
		a -= i
	else:
		break
for i in range(2, c, 2):
	if b >= i:
		b1 += 1
		b -= i
	else:
		break
if a1 <= b1:
	print('Vladik')
else:
	print('Valera')


(a, b) = map(int, input().split())
i = 1
while True:
	a = a - i
	if a < 0:
		ans = 'Vladik'
		break
	i += 1
	b = b - i
	if b < 0:
		ans = 'Valera'
		break
	i += 1
print(ans)


ans = ['Vladik', 'Valera']
s = input()
s = s.split()
s[0] = int(s[0])
s[1] = int(s[1])
p = 1
while 1:
	s[(p + 1) % 2] -= p
	if s[(p + 1) % 2] < 0:
		print(ans[(p + 1) % 2])
		break
	p += 1


who = [int(x) for x in input().split()]
turn = 0
o = 1
while o <= who[turn]:
	who[turn] = who[turn] - o
	o = o + 1
	turn = turn ^ 1
if turn == 1:
	print('Valera')
else:
	print('Vladik')


import sys
(a, b) = map(int, input().split())
cnt = 1
while a >= 0 and b >= 0:
	if cnt & 1:
		a -= cnt
	else:
		b -= cnt
	cnt += 1
	if a < 0:
		print('Vladik')
	elif b < 0:
		print('Valera')


(a, b) = map(int, input().split())
flag = True
for step in range(1, 200000):
	if flag:
		a -= step
	else:
		b -= step
	if a < 0 or b < 0:
		break
	flag = not flag
if flag:
	print('Vladik')
else:
	print('Valera')


s = input()
l = s.split()
v1 = int(l[0])
v2 = int(l[1])
i = 1
while v1 >= 0 and v2 >= 0:
	if i % 2 == 1:
		v1 -= i
	if i % 2 == 0:
		v2 -= i
	i += 1
if v1 < 0:
	print('Vladik')
else:
	print('Valera')


import math
(m, n) = map(int, input().split())
m = int(math.sqrt(m * 4 + 1)) // 2
n = (int(math.sqrt(n * 4 + 1)) - 1) // 2
if m > n:
	print('Valera')
else:
	print('Vladik')


import math
(a, b) = input().split()
(a, b) = (int(a), int(b))
p = 2 * math.floor(math.sqrt(a)) + 1
q = math.floor(math.sqrt(1 + 4 * b)) + 1
if p < q:
	print('Vladik')
else:
	print('Valera')


(a, b) = map(int, input().split())
j = 1
i = 1
while True:
	if i == 1:
		if a >= j:
			a -= j
		else:
			break
	elif b >= j:
		b -= j
	else:
		break
	i *= -1
	j += 1
print('Vladik' if i == 1 else 'Valera')


(a, b) = map(int, input().split())
k = 1
m = 1
while 1 == 1:
	if m == 1:
		if a - k >= 0:
			a = a - k
			k = k + 1
			m = 2
		else:
			print('Vladik')
			exit(0)
	elif b - k >= 0:
		b = b - k
		k = k + 1
		m = 1
	else:
		print('Valera')
		exit(0)


def main():
	from math import floor, sqrt
	[vladik, valera] = [int(_) for _ in input().split()]
	times_vladik = floor(sqrt(vladik))
	times_valera = next((i for i in range(floor(sqrt(valera)) + 2) if i * (i + 1) > valera))
	times_valera -= 1
	print('Valera' if times_vladik > times_valera else 'Vladik')
main()


import math

def solve():
	s = input()
	tokens = s.split()
	a = int(tokens[0])
	b = int(tokens[1])
	n = int(math.sqrt(a))
	approx = n * (n + 1)
	if approx == b:
		return 'Equal'
	elif approx > b:
		return 'Valera'
	return 'Vladik'
result = solve()
if result == 'Valera':
	print(result)
else:
	print('Vladik')


import math
(x, y) = map(int, input().split())
m = round(math.sqrt(x) - math.sqrt(x) % 1)
n = y - round(math.sqrt(y) - math.sqrt(y) % 1)
a = round(math.sqrt(n) - math.sqrt(n) % 1)
n = a
print('Vladik' if m == n or n > m else 'Valera')


def winner(a, b):
	a_c = 1
	b_c = 2
	for i in range(a + b):
		a -= a_c
		b -= b_c
		if a < 0 or b < 0:
			break
		a_c += 2
		b_c += 2
	if a < 0 and b >= 0:
		return 'Vladik'
	if a >= 0 and b < 0:
		return 'Valera'
	else:
		return 'Vladik'
(a, b) = map(int, input().split())
print(winner(a, b))


import sys
import math
get_string = lambda : sys.stdin.readline().strip()
get_int_list = lambda : list(map(int, sys.stdin.readline().strip().split()))
get_intList_from_str = lambda : list(map(int, list(sys.stdin.readline().strip())))
get_charList_from_str = lambda : list(sys.stdin.readline().strip())
get_char_list = lambda : sys.stdin.readline().strip().split()
get_int = lambda : int(sys.stdin.readline())
pt = lambda x: sys.stdout.write(str(x))
(a, b) = get_int_list()
n = int(math.sqrt(a))
m = n * (n + 1)
if m > b:
	print('Valera')
else:
	print('Vladik')


a = list(map(int, input().split(' ')))
i = 0
x = 1
while True:
	if a[i] < x:
		print(['Vladik', 'Valera'][i])
		break
	a[i] -= x
	if i == 1:
		i = 0
	else:
		i = 1
	x += 1


(x, y) = map(int, input().split())
ans = 0
i = 1
while x >= 0 and y >= 0:
	x -= i
	i += 1
	if x < 0:
		print('Vladik')
		break
	y -= i
	i += 1
	if y < 0:
		print('Valera')
		break


[a, b] = list(map(int, input().split()))
x = 1
while True:
	if x % 2 == 1:
		if a < x:
			print('Vladik')
			exit(0)
		a -= x
	else:
		if b < x:
			print('Valera')
			exit(0)
		b -= x
	x += 1


from sys import stdin, stdout
import math
from collections import Counter, deque
L = lambda : list(map(int, stdin.readline().strip().split()))
M = lambda : map(int, stdin.readline().strip().split())
I = lambda : int(stdin.readline().strip())
S = lambda : stdin.readline().strip()
C = lambda : stdin.readline().strip().split()
mod = 1000000007

def pr(a):
	return ''.join(list(map(str, a)))

def solve():
	(n, m) = M()
	i = 1
	while 1:
		n -= i
		if n < 0:
			print('Vladik')
			return
		i += 1
		m -= i
		if m < 0:
			print('Valera')
			return
		i += 1
for _ in range(1):
	solve()


x = 1
step = 1
(a, b) = map(int, input().split())
while True:
	if step == 1:
		if x > a:
			break
		a -= x
		x += 1
		step = 0
	else:
		if x > b:
			break
		b -= x
		x += 1
		step = 1
if step == 1:
	print('Vladik')
else:
	print('Valera')


import math
(a, b) = (int(i) for i in input().split(' '))
vladik = math.floor(math.sqrt(a))
valera = 0
l = 1
h = math.floor(math.sqrt(b) + 1)
while l <= h:
	mid = l + h >> 1
	t = mid * mid + mid
	if t <= b:
		valera = max(valera, mid)
		l = mid + 1
	else:
		h = mid - 1
if vladik > valera:
	print('Valera')
else:
	print('Vladik')


(vladik, valera) = [int(x) for x in input().split()]
(odd, even) = (1, 2)
while True:
	vladik -= odd
	if vladik < 0:
		print('Vladik')
		break
	valera -= even
	if valera < 0:
		print('Valera')
		break
	odd += 2
	even += 2


(a, b) = map(int, input().split())
i = 1
t = True
while True:
	if t:
		a -= i
		if a < 0:
			print('Vladik')
			break
	else:
		b -= i
		if b < 0:
			print('Valera')
			break
	t = not t
	i += 1


(a, b) = map(int, input().split())
p = int(a ** 0.5)
q = int((-1 + (1 + 4 * b) ** 0.5) / 2)
print('Valera' if p > q else ' Vladik')


def main():
	(a, b) = map(int, input().split())
	dif = 1
	while True:
		if dif % 2 == 1:
			if a >= dif:
				a -= dif
			else:
				print('Vladik')
				return
		elif b >= dif:
			b -= dif
		else:
			print('Valera')
			return
		dif += 1
main()


import sys
(a, b) = map(int, sys.stdin.readline().split())
persions = ['Vladik', 'Valera']
turn = True
num = 1
while True:
	if turn:
		if a < num:
			break
		a -= num
		turn = False
	else:
		if b < num:
			break
		b -= num
		turn = True
	num += 1
if turn:
	print(persions[0])
else:
	print(persions[1])


import sys
from sys import stdin, stdout
import bisect
from bisect import bisect_left as bl
from bisect import bisect_right as br
import itertools
import collections
import math
import heapq
import re

def modinv(n, p):
	return pow(n, p - 2, p)

def cin():
	return map(int, sin().split())

def ain():
	return list(map(int, sin().split()))

def sin():
	return input()

def inin():
	return int(input())

def Divisors(n):
	l = []
	for i in range(1, int(math.sqrt(n) + 1)):
		if n % i == 0:
			if n // i == i:
				l.append(i)
			else:
				l.append(i)
				l.append(n // i)
	return l

def most_frequent(list):
	return max(set(list), key=list.count)

def GCD(x, y):
	while y:
		(x, y) = (y, x % y)
	return x

def ncr(n, r, p):
	t = fact[n] * (ifact[r] * ifact[n - r] % p) % p
	return t

def Convert(string):
	li = list(string.split(''))
	return li

def SieveOfEratosthenes(n):
	global prime
	prime = [True for i in range(n + 1)]
	p = 2
	while p * p <= n:
		if prime[p] == True:
			for i in range(p * p, n + 1, p):
				prime[i] = False
		p += 1
	f = []
	for p in range(2, n):
		if prime[p]:
			f.append(p)
	return f
prime = []
q = []

def dfs(n, d, v, c):
	global q
	v[n] = 1
	x = d[n]
	q.append(n)
	j = c
	for i in x:
		if i not in v:
			f = dfs(i, d, v, c + 1)
			j = max(j, f)
	return j

def main():
	q = ain()
	a = q[0]
	b = q[1]
	temp1 = a
	temp2 = b
	for i in range(max(a, b) + 1):
		a = a - (i + 1) * (i + 1)
		if a < 0:
			print('Vladik')
			break
		else:
			b = b - ((i + 1) * (1 + i) + i + 1)
			if b < 0:
				print('Valera')
				break
		a = temp1
		b = temp2
py2 = round(0.5)
if py2:
	from future_builtins import ascii, filter, hex, map, oct, zip
	range = xrange
import os, sys
from io import IOBase, BytesIO
BUFSIZE = 8192

class FastIO(BytesIO):
	newlines = 0

	def __init__(self, file):
		self._file = file
		self._fd = file.fileno()
		self.writable = 'x' in file.mode or 'w' in file.mode
		self.write = super(FastIO, self).write if self.writable else None

	def _fill(self):
		s = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
		self.seek((self.tell(), self.seek(0, 2), super(FastIO, self).write(s))[0])
		return s

	def read(self):
		while self._fill():
			pass
		return super(FastIO, self).read()

	def readline(self):
		while self.newlines == 0:
			s = self._fill()
			self.newlines = s.count(b'\n') + (not s)
		self.newlines -= 1
		return super(FastIO, self).readline()

	def flush(self):
		if self.writable:
			os.write(self._fd, self.getvalue())
			(self.truncate(0), self.seek(0))

class IOWrapper(IOBase):

	def __init__(self, file):
		self.buffer = FastIO(file)
		self.flush = self.buffer.flush
		self.writable = self.buffer.writable
		if py2:
			self.write = self.buffer.write
			self.read = self.buffer.read
			self.readline = self.buffer.readline
		else:
			self.write = lambda s: self.buffer.write(s.encode('ascii'))
			self.read = lambda : self.buffer.read().decode('ascii')
			self.readline = lambda : self.buffer.readline().decode('ascii')
(sys.stdin, sys.stdout) = (IOWrapper(sys.stdin), IOWrapper(sys.stdout))
input = lambda : sys.stdin.readline().rstrip('\r\n')
main()


import math
types = list(map(int, input().strip().split(' ')))
i = 0
while True:
	if i % 2 == 1:
		if types[0] < i:
			print('Vladik')
			break
		types[0] -= i
	else:
		if types[1] < i:
			print('Valera')
			break
		types[1] -= i
	i += 1


(a, b) = map(int, input().split())
g = 1
t = 0
while True:
	t += 1
	if t % 2 != 0:
		if a < g:
			break
		else:
			a -= g
	elif b < g:
		break
	else:
		b -= g
	g += 1
if t % 2 == 0:
	print('Valera')
else:
	print('Vladik')


(a, b) = list(map(int, input().split()))
i = 1
while i ** 2 <= a:
	i = i + 1
j = 1
while j * (j + 1) <= b:
	j += 1
if i <= j:
	print('Vladik')
else:
	print('Valera')


(a, b) = map(int, input().split())
c = 1
while a >= 0 and b >= 0:
	a -= c
	c += 1
	b -= c
	c += 1
if a < 0:
	print('Vladik')
else:
	print('Valera')


(a, b) = map(int, input().split())
k = 1
p = 1
q = 2
while a >= 0 and b >= 0:
	if k == 1:
		a -= p
		k = 0
		p += 2
	else:
		b -= q
		k = 1
		q += 2
	if a < 0:
		print('Vladik')
		exit()
	if b < 0:
		print('Valera')
		exit()


(a, b) = map(int, input().split())
mx = max(a, b)
for i in range(1, mx + 2):
	if i & 1:
		if i > a:
			print('Vladik')
			break
		a -= i
	else:
		if i > b:
			print('Valera')
			break
		b -= i


(n, m) = map(int, input().split())
t = 0
while n >= 0 and m >= 0:
	t += 1
	if t % 2 == 0:
		m = m - t
	else:
		n = n - t
print('Valera' if t % 2 == 0 else 'Vladik')


a = input().split(' ')
x = int(a[0])
y = int(a[1])
passo = 1
while 1:
	x -= passo
	if x < 0:
		print('Vladik')
		break
	passo += 1
	y -= passo
	if y < 0:
		print('Valera')
		break
	passo += 1


line1 = list(map(lambda x: int(x), input().split()))
amt = 1
who = 0
while line1[0] >= 0 and line1[1] >= 0:
	line1[who] -= amt
	who = not who
	amt += 1
print('Vladik' if line1[0] < 0 else 'Valera')


(n, m) = map(int, input().split())
i = 1
while 1:
	if i & 1 == 1:
		if n - i < 0:
			print('Vladik')
			break
		else:
			n -= i
	elif m - i < 0:
		print('Valera')
		break
	else:
		m -= i
	i += 1


(a, b) = [int(x) for x in input().split()]
num = 0
give = 1
while True:
	if num % 2 == 0:
		if a - give >= 0:
			a -= give
			give += 1
			num += 1
		else:
			print('Vladik')
			break
	elif b - give >= 0:
		b -= give
		give += 1
		num += 1
	else:
		print('Valera')
		break


(a, b) = (int(i) for i in input().split(' '))
i = 0
while a >= 0 and b >= 0:
	i = i + 1
	if i % 2 == 0:
		b = b - i
	else:
		a = a - i
if a < 0:
	print('Vladik')
elif b < 0:
	print('Valera')


(a, b) = map(int, input().split())
for i in range(1, 9 ** 9):
	a -= i % 2 * i
	b -= (i + 1) % 2 * i
	if min(a, b) < 0:
		print(['Valera', 'Vladik'][i % 2])
		break


(a, b) = map(int, input().split())
i = 1
while 1:
	if a < i:
		print('Vladik')
		break
	a -= i
	i += 1
	if b < i:
		print('Valera')
		break
	b -= i
	i += 1


(a, b) = map(int, input().split())
c = 1
while 1:
	if c % 2 and a < c:
		break
	elif c % 2 == 0 and b < c:
		break
	if c % 2:
		a -= c
	else:
		b -= c
	c += 1
if c % 2:
	print('Vladik')
else:
	print('Valera')


from math import sqrt, floor
(a, b) = map(int, input().split())
x = sqrt(a)
y = (-1 + sqrt(1 + 4 * b)) / 2
x = floor(x)
y = floor(y)
if x <= y:
	print('Vladik')
else:
	print('Valera')


(a, b) = map(int, input().split())
n1 = int(a ** 0.5)
n2 = (-1 + (1 + 4 * b) ** 0.5) // 2
print('Valera' if n1 > n2 else 'Vladik')


ab = input()
a = int(ab.split(' ')[0])
b = int(ab.split(' ')[1])
a1 = int(a ** (1 / 2))
b1 = int(((4 * b + 1) ** (1 / 2) - 1) / 2)
if a1 - b1 >= 1:
	print('Valera')
else:
	print('Vladik')


import sys
read = lambda : sys.stdin.readline().rstrip()
readi = lambda : int(sys.stdin.readline())
writeln = lambda x: sys.stdout.write(str(x) + '\n')
write = lambda x: sys.stdout.write(x)
(a, b) = map(int, read().split())
toggle = True
c = 1
while True:
	if toggle:
		a -= c
	else:
		b -= c
	if a < 0:
		writeln('Vladik')
		break
	if b < 0:
		writeln('Valera')
		break
	c += 1
	toggle = not toggle


import math
vs = ['Vladik', 'Valera']
(a, b) = map(int, input().split(' '))
an = math.floor(math.sqrt(a))
bn = 0
while True:
	bn += 1
	if b < bn * (bn + 1):
		bn -= 1
		break
print(vs[an > bn])


X = list(map(int, input().split()))
Turn = True
N = 1
while True:
	if Turn:
		if X[0] - N < 0:
			print('Vladik')
			exit()
		X[0] -= N
		N += 1
		Turn = False
	else:
		if X[1] - N < 0:
			print('Valera')
			exit()
		X[1] -= N
		N += 1
		Turn = True


import math
(a, b) = map(int, input().split())
vladik = int(math.sqrt(a))
high = int(math.sqrt(b))
while True:
	if pow(high, 2) + high <= b:
		break
	high -= 1
valera = high
if vladik > valera:
	print('Valera')
else:
	print('Vladik')


l = [int(e) for e in input().split()]
a = l[0]
b = l[1]
i = 0
while 1:
	if i % 2 == 0:
		if b < 0:
			print('Valera')
			break
		b -= i
	else:
		if a < 0:
			print('Vladik')
			break
		a -= i
	i += 1


import sys
import math
get_string = lambda : sys.stdin.readline().strip()
get_int_list = lambda : list(map(int, sys.stdin.readline().strip().split()))
get_intList_from_str = lambda : list(map(int, list(sys.stdin.readline().strip())))
get_charList_from_str = lambda : list(sys.stdin.readline().strip())
get_char_list = lambda : sys.stdin.readline().strip().split()
get_int = lambda : int(sys.stdin.readline())
pt = lambda x: sys.stdout.write(str(x))
(a, b) = get_int_list()
turn = 0
step = 1
while a >= step and b >= step:
	if turn == 0:
		a -= step
		step += 1
		turn = 1
	else:
		b -= step
		step += 1
		turn = 0
if turn == 0:
	if a < step:
		print('Vladik')
	else:
		print('Valera')
elif b < step:
	print('Valera')
else:
	print('Vladik')


(a, b) = map(int, input().split(' '))
answer = ''
for i in range(1, max(a, b) + 2):
	if i % 2 == 1:
		a -= i
		if a < 0:
			print('Vladik')
			exit()
	else:
		b -= i
		if b < 0:
			print('Valera')
			exit()


(a, b) = map(int, input().split())
turn = 0
take = 1
while True:
	if turn == 0:
		if a >= take:
			a -= take
			turn ^= 1
		else:
			break
	elif b >= take:
		b -= take
		turn ^= 1
	else:
		break
	take += 1
print(['Valera', 'Vladik'][turn ^ 1])


def switch(A):
	if A:
		return False
	return True
[lad, ale] = input().split()
[lad, ale] = [int(lad), int(ale)]
check = True
turn = False
i = 1
while check:
	if turn:
		ale = ale - i
		if ale < 0:
			check = False
	else:
		lad = lad - i
		if lad < 0:
			check = False
	turn = switch(turn)
	i = i + 1
if not turn:
	print('Valera')
else:
	print('Vladik')


vect1 = input()
vect1 = vect1.split(' ')
tam = len(vect1)
cont1 = 1
contador1 = 2
x = 0
aux11 = int(vect1[0])
aux22 = int(vect1[1])
while True:
	aux11 = aux11 - cont1
	aux22 = aux22 - contador1
	if aux11 < 0:
		print('Vladik')
		break
	if aux22 < 0:
		print('Valera')
		break
	cont1 = cont1 + 2
	contador1 = contador1 + 2


(n, m) = tuple(map(int, input().split()))
i = 1
while True:
	if i % 2 != 0:
		n -= i
	else:
		m -= i
	if n < 0:
		print('Vladik')
		exit()
	if m < 0:
		print('Valera')
		exit()
	i += 1


from math import sqrt

def Cor(a, b):
	n = 1
	while True:
		if a >= n:
			a -= n
			n += 1
		else:
			return 2
		if b >= n:
			b -= n
			n += 1
		else:
			return 1

def UnCor(a, b):
	na = int(sqrt(a))
	nb = int((-1 + sqrt(1 + 4 * b)) / 2)
	if na <= nb:
		return 'Vladik'
	else:
		return 'Valera'
o = [int(u) for u in input().split()]
print(UnCor(o[0], o[1]))


(n, k) = map(int, input().split())
t = 1
while True:
	if t % 2 == 1:
		n -= t
	if t % 2 == 0:
		k -= t
	if n < 0:
		print('Vladik')
		break
	if k < 0:
		print('Valera')
		break
	t += 1


(a, b) = list(map(int, input().split()))
k = 1
p = True
while a >= 0 and b >= 0:
	if p:
		a -= k
		p = False
		if a < 0:
			break
	else:
		b -= k
		p = True
		if b < 0:
			break
	k += 1
if a < 0:
	print('Vladik')
else:
	print('Valera')


(a, b) = map(int, input().split())
i = 1
c = 1
d = 2
while True:
	if i % 2 != 0:
		a -= c
		c += 2
	elif i % 2 == 0:
		b -= d
		d += 2
	if a < 0:
		print('Vladik')
		break
	if b < 0:
		print('Valera')
		break
	i += 1


(a, b) = map(int, input().split())
curr = 1
while True:
	if curr % 2 == 1:
		a -= curr
	if curr % 2 == 0:
		b -= curr
	curr += 1
	if a < 0:
		print('Vladik')
		exit()
	if b < 0:
		print('Valera')
		exit()


def bin_search(calc, n):
	hi = n + 1
	lo = ans = 0
	while hi - lo > 1:
		mid = (hi + lo) // 2
		if calc(mid) <= n:
			lo = ans = mid
		else:
			hi = mid
	return ans
[vl, va] = [int(x) for x in input().split()]
[vl, va] = [bin_search(lambda x: x * x, vl), bin_search(lambda x: x * (x + 1), va)]
print('Valera') if vl > va else print('Vladik')


def solve(vladik, valera):
	i = 1
	while True:
		if vladik - i < 0:
			return 'Vladik'
		else:
			vladik -= i
		i += 1
		if valera - i < 0:
			return 'Valera'
		else:
			valera -= i
		i += 1
(n, m) = map(int, input().split())
print(solve(n, m))


(a, b) = [int(x) for x in input().split()]
n = 1
flag = 'Vladik'
while a - n >= 0 and flag == 'Vladik' or (b - n >= 0 and flag == 'Valera'):
	if flag == 'Valera':
		b -= n
		flag = 'Vladik'
	else:
		a -= n
		flag = 'Valera'
	n += 1
print(flag)


(a, b) = map(int, input().split())
print('VVlaaldeirka'[((4 * b + 1) ** 0.5 - 1) // 2 < a ** 0.5 // 1::2])


(a, b) = input().strip().split(' ')
(a, b) = [int(a), int(b)]
n = b // 2
m = 1
M = 10 ** 14
mid = (m + M) // 2
s = mid * (mid + 1) // 2
s1 = s + mid + 1
while not (s <= n and s1 > n):
	if n == 0:
		mid = 0
		break
	mid = (m + M) // 2
	s = mid * (mid + 1) // 2
	s1 = s + mid + 1
	if s < n and s1 < n:
		m = mid
	elif s > n:
		M = mid
	else:
		break
m = int(a ** 0.5)
if m > mid:
	print('Valera')
else:
	print('Vladik')


(a, b) = map(int, input().split())
s = 0
cnt = 1
while True:
	if s % 2 == 0:
		if a < cnt:
			break
		a -= cnt
	else:
		if b < cnt:
			break
		b -= cnt
	cnt += 1
	s = 1 - s
print(['Vladik', 'Valera'][s])


(a, b) = map(int, input().split())
t = 1
c = 1
while c == 1:
	a = a - t
	if a < 0:
		print('Vladik')
		break
	t = t + 1
	b = b - t
	if b < 0:
		print('Valera')
		break
	t = t + 1


a = input().split()
s = int(a[0])
d = int(a[1])
g = 0
for i in range(int(1e+50)):
	g += 1
	if i % 2 == 0:
		s -= g
		if s < 0:
			print('Vladik')
			break
	else:
		d -= g
		if d < 0:
			print('Valera')
			break


import math, itertools, fractions, heapq, collections, bisect, sys, queue, copy
sys.setrecursionlimit(10 ** 7)
inf = 10 ** 20
mod = 10 ** 9 + 7
dd = [(-1, 0), (0, 1), (1, 0), (0, -1)]
ddn = [(-1, 0), (-1, 1), (0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-1, -1)]

def LI():
	return [int(x) for x in sys.stdin.readline().split()]

def I():
	return int(sys.stdin.readline())

def F():
	return float(sys.stdin.readline())

def LS():
	return sys.stdin.readline().split()

def S():
	return input()

def main():
	(a, b) = LI()
	st = 1
	while True:
		if st % 2 == 1:
			a -= st
			if a < 0:
				return 'Vladik'
		else:
			b -= st
			if b < 0:
				return 'Valera'
		st += 1
print(main())


a = input().split(' ')
c1 = int(a[0])
c2 = int(a[1])
x = int(c1 ** (1.0 / 2))
y = x * (x + 1)
if y > c2:
	print('Valera')
else:
	print('Vladik')


(vladik, valera) = map(int, input().split())
for x in range(1, 10 ** 5):
	if vladik < 0 or valera < 0:
		break
	elif x % 2 == 1:
		vladik -= x
	else:
		valera -= x
if vladik < valera:
	print('Vladik')
else:
	print('Valera')


(vl, va) = map(int, input().split())
c = 1
while va >= 0 and vl > 0:
	vl -= c
	c += 1
	if vl >= 0:
		va -= c
	c += 1
if va >= vl:
	print('Vladik')
else:
	print('Valera')


def main():
	v = list(map(int, input().split()))
	x = 1
	while True:
		i = 1 - x % 2
		v[i] -= x
		if v[i] < 0:
			break
		x += 1
	print('Vladik' if x % 2 == 1 else 'Valera')
main()


(a, b) = map(int, input().split())
res1 = int(a ** 0.5)
res2 = int((b + 0.25) ** 0.5 - 0.5)
if res1 == res2:
	print('Vladik')
elif res1 > res2:
	print('Valera')
else:
	print('Vladik')


inp = input('')
inp = inp.split(' ')
a = int(inp[0])
b = int(inp[1])
i = 1
while 1:
	if a >= i:
		a = a - i
	else:
		print('Vladik\n')
		exit(0)
	i = i + 1
	if b >= i:
		b = b - i
	else:
		print('Valera\n')
		exit(0)
	i = i + 1


(vladik, valera) = map(int, input().split())
i = 0
while True:
	i += 1
	if i % 2 == 0:
		if valera < i:
			print('Valera')
			break
		valera -= i
	else:
		if vladik < i:
			print('Vladik')
			break
		vladik -= i


(a, b) = map(int, input().split())
l = 1
r = 10 ** 9

def s(n):
	return n * (n + 1) // 2
while r - l > 1:
	m = (l + r) // 2
	x = 2 * s((m + 1) // 2) - (m + 1) // 2
	y = 2 * s(m // 2)
	if x <= a and y <= b:
		l = m
	else:
		r = m
print('Valera' if l % 2 == 1 else 'Vladik')


(a, b) = map(int, input().split())
c = a + b
for i in range(1, c + 1):
	if i % 2 != 0:
		if a < i:
			print('Vladik')
			exit()
		else:
			a -= i
	elif b < i:
		print('Valera')
		exit()
	else:
		b -= i


(Vladik, Valera) = map(int, input().split())
vla = True
val = True
turn = 0
while vla and val:
	turn += 1
	if turn % 2 != 0:
		Vladik -= turn
	else:
		Valera -= turn
	if Vladik < 0:
		vla = False
	elif Valera < 0:
		val = False
if vla:
	print('Valera')
else:
	print('Vladik')


from math import sqrt as s
(n, k) = map(int, input().split())
(x, y) = (int(s(n)), (-1 + s(1 + 4 * k)) // 2)
print(['Valera', 'Vladik'][x <= y])


x = input()
a = []

def findmax(a, b):
	if a > b:
		return a
	else:
		return b
y = x.split()
y[0] = int(y[0])
y[1] = int(y[1])
if y[0] == 1 and y[1] == 0:
	a = ['Valera']
if y[0] == 1 and y[1] == 1:
	a = ['Valera']
if y[0] == 0 and y[1] == 1:
	a = ['Vladik']
if y[0] == 0 and y[1] == 0:
	a = ['Vladik']
for i in range(1, findmax(y[0], y[1]) + 2, 1):
	if i % 2 != 0:
		if y[0] >= i:
			y[0] = y[0] - i
		else:
			a = ['Vladik']
			break
	elif y[1] >= i:
		y[1] = y[1] - i
	else:
		a = ['Valera']
		break
print(a[0])


__author__ = 'soshika'
velera = 'Valera'
vladik = 'Vladik'
ans = str()
(b, a) = map(int, input().split())
step = 0
turn = 1
while True:
	if turn:
		if a - step >= 0:
			a -= step
		else:
			ans = velera
			break
	elif b - step >= 0:
		b -= step
	else:
		ans = vladik
		break
	step += 1
	turn ^= 1
print(ans)


(n, m) = map(int, input().split())
i = 1
while n >= 0 and m >= 0:
	n -= i
	i += 1
	if n < 0:
		print('Vladik')
		break
	m -= i
	i += 1
	if m < 0:
		print('Valera')
		break


inp = input().split(' ')
vladik = int(inp[0])
valera = int(inp[1])
sub = 1
while vladik >= 0 and valera >= 0:
	if sub % 2 != 0:
		vladik -= sub
		sub += 1
	elif sub % 2 == 0:
		valera -= sub
		sub += 1
	if valera < 0:
		print('Valera')
		break
	elif vladik < 0:
		print('Vladik')
		break


(a, b) = map(int, input().split())
for i in range(1, max(a, b) + 1):
	if i % 2 != 0:
		a -= i
	else:
		b -= i
	if a - (i + 1) < 0 and i % 2 == 0:
		f = 1
		break
	elif b - (i + 1) < 0 and i % 2 != 0:
		f = 2
		break
if f == 1:
	print('Vladik')
elif f == 2:
	print('Valera')


from sys import stdin
for line in stdin:
	entrada = line.splitlines()
	break
i = 0
cant_dulces = [int(entrada[0].split()[0]), int(entrada[0].split()[1])]
cont = 1
while cant_dulces[i] >= cont:
	if i == 0:
		cant_dulces[i] = cant_dulces[i] - cont
		cont += 1
		i = 1
	else:
		cant_dulces[i] = cant_dulces[i] - cont
		cont += 1
		i = 0
if i == 0:
	print('Vladik')
else:
	print('Valera')


(a, b) = input().split()
a = int(a)
b = int(b)
i = 1
l = 0
ctr1 = 0
while True:
	l += i
	i += 2
	if l > a:
		break
	ctr1 += 1
i = 2
r = 0
ctr2 = 0
while True:
	r += i
	i += 2
	if r > b:
		break
	ctr2 += 1
if ctr1 > ctr2:
	print('Valera')
else:
	print('Vladik')


(a, b) = [int(i) for i in input().split()]
l = 0
r = 1000000000
while l < r:
	cur = (l + r) // 2 if (l + r) % 2 == 0 else (l + r) // 2 + 1
	if cur * cur <= a:
		l = cur
	else:
		r = cur - 1
ares = l
l = 0
r = 1000000000
while l < r:
	cur = (l + r) // 2 if (l + r) % 2 == 0 else (l + r) // 2 + 1
	if (2 + 2 * cur) * cur // 2 <= b:
		l = cur
	else:
		r = cur - 1
bres = l
if ares == bres:
	print('Vladik')
elif ares > bres:
	print('Valera')
else:
	print('Vladik')


(a, b) = map(int, input().split())
cnt = 1
while 1:
	if cnt & 1:
		a -= cnt
	else:
		b -= cnt
	if a < 0:
		print('Vladik')
		quit()
	elif b < 0:
		print('Valera')
		quit()
	else:
		cnt += 1


import math
n = input().split(' ')
a = int(n[0])
b = int(n[1])
n = (math.sqrt(4 * b + 1) - 1) / 2
m = int(math.sqrt(a))
if m <= n:
	print('Vladik')
else:
	print('Valera')


def fullsq2(n, p1, p2):
	if p1 + 1 == p2:
		if p1 * p1 <= n:
			return p1
		else:
			return p2
	p = (p1 + p2) // 2
	pp = p * p
	if pp == n:
		return p
	if pp < n:
		return fullsq2(n, p, p2)
	else:
		return fullsq2(n, p1, p)

def fullsq(n):
	if n == 0:
		return 0
	if n <= 3:
		return 1
	return fullsq2(n, 0, n)

def fullseq2(n, p1, p2):
	if p1 + 1 == p2:
		if p1 * (p1 + 1) <= n:
			return p1
		else:
			return p2
	p = (p1 + p2) // 2
	pp = p * (p + 1)
	if pp == n:
		return p
	if pp < n:
		return fullseq2(n, p, p2)
	else:
		return fullseq2(n, p1, p)

def fullseq(n):
	if n <= 1:
		return 0
	if n <= 5:
		return 1
	return fullseq2(n, 0, n)
(a, b) = map(int, input().split())
print(('Vladik', 'Valera')[fullsq(a) > fullseq(b)])


import math
(vladik, valera) = map(int, input().split())
turn = 1
vladik_gives = 1
valera_gives = 2
zero = []
while vladik > 0 or valera > 0:
	if vladik < 0 or valera < 0:
		break
	if turn % 2 == 0:
		valera -= valera_gives
		valera_gives += 2
	else:
		vladik -= vladik_gives
		vladik_gives += 2
	if valera == 0:
		zero.append('Valera')
	if vladik == 0:
		zero.append('Vladik')
	turn += 1
if vladik == 0 and valera == 0:
	print(zero[0])
elif vladik <= valera:
	print('Vladik')
else:
	print('Valera')


__author__ = 'artyom'

def main():
	a = read(3)
	i = 0
	c = 1
	while True:
		if a[i] < c:
			return i
		a[i] -= c
		c += 1
		i ^= 1

def read(mode=1, size=None):
	if mode == 0:
		return input().strip()
	if mode == 1:
		return int(input().strip())
	if mode == 2:
		return input().strip().split()
	if mode == 3:
		return list(map(int, input().strip().split()))
	a = []
	for _ in range(size):
		a.append(read(3))
	return a

def write(s='\n'):
	if s is None:
		s = ''
	if isinstance(s, tuple) or isinstance(s, list):
		s = ' '.join(map(str, s))
	s = str(s)
	print(s)
write(['Vladik', 'Valera'][main()])


def read():
	return [int(v) for v in input().split()]

def main():
	(a, b) = read()
	x = int(a ** 0.5)
	if x * x <= a:
		x += 1
	y = int(((4 * b + 1) ** 0.5 - 1) / 2)
	if y * (y + 1) <= b:
		y += 1
	if x <= y:
		print('Vladik')
	else:
		print('Valera')
main()


def READ():
	return map(int, input().split())
vladikTurn = True
valeraTurn = False
vladik = True
valera = True
(a, b) = READ()
for f in range(1, 10 ** 9 + 1, 1):
	if vladikTurn:
		a -= f
		if a < 0:
			vladik = False
			break
		vladikTurn = False
		valeraTurn = True
	elif valeraTurn:
		b -= f
		if b < 0:
			valera = False
			break
		valeraTurn = False
		vladikTurn = True
if vladik:
	print('Valera')
else:
	print('Vladik')


import math as mt
import sys, string, bisect
input = sys.stdin.readline
import random
from collections import deque, defaultdict
L = lambda : list(map(int, input().split()))
Ls = lambda : list(input().split())
M = lambda : map(int, input().split())
I = lambda : int(input())
(n, m) = M()
i = 0
while True:
	if i % 2 == 0:
		n -= i + 1
		if n < 0:
			print('Vladik')
			break
	else:
		m -= i + 1
		if m < 0:
			print('Valera')
			break
	i += 1


(a, b) = map(int, input().split())
i = 1
vladik = True
while True:
	if vladik:
		if a - i < 0:
			print('Vladik')
			break
		else:
			vladik = False
			a -= i
			i += 1
	elif b - i < 0:
		print('Valera')
		break
	else:
		vladik = True
		b -= i
		i += 1


(vl, va) = map(int, input().split())
step = 1
while 1:
	if step % 2 == 1:
		if vl < step:
			print('Vladik')
			break
		vl -= step
	else:
		if va < step:
			print('Valera')
			break
		va -= step
	step += 1


(a, b) = map(int, input().split())
(n1, n2) = (0, 0)
up = 10 ** 9
low = 0
while up > low:
	m = (up + low) // 2
	last = 2 * m - 1
	tot = (1 + last) * m // 2
	if tot > a:
		up = m
	elif tot < a:
		low = m + 1
		n1 = max(n1, m)
	else:
		n1 = m
		break
up = 10 ** 9
low = 0
while up > low:
	m = (up + low) // 2
	last = 2 * m
	tot = (2 + last) * m // 2
	if tot > b:
		up = m
	elif tot < b:
		low = m + 1
		n2 = max(n2, m)
	else:
		n2 = m
		break
if n1 > n2:
	print('Valera')
else:
	print('Vladik')


(m, n) = map(int, input().split())
val = int(m ** (1 / 2))
val += 1
temp = val * (val - 1)
if n >= temp:
	print('Vladik')
else:
	print('Valera')


(a, b) = map(int, input().split())
diff = 1
count = 0
while True:
	if not count % 2:
		a -= diff
		diff += 1
	else:
		b -= diff
		diff += 1
	if a < 0:
		break
	elif b < 0:
		break
	count += 1
if count % 2:
	print('Valera')
else:
	print('Vladik')


(a, b) = [int(i) for i in input().split(' ')]
x = 0
while x * x <= a:
	x += 1
movesa = x - 1
x = 0
while x * x + x <= b:
	x += 1
movesb = x - 1
if movesb < movesa:
	print('Valera')
else:
	print('Vladik')


(x, y) = input().split()
Vladik = int(x)
Valera = int(y)
i = 1
while True:
	Vladik = Vladik - i
	if Vladik < 0:
		print('Vladik')
		break
	i = i + 1
	Valera = Valera - i
	if Valera < 0:
		print('Valera')
		break
	i = i + 1


(n, m) = map(int, input().split())
pn = int(n ** 0.5)
pm = int(m ** 0.5)
if m < pm ** 2 + pm:
	pm -= 1
if pn > pm or (m < 2 and n > 0):
	print('Valera')
else:
	print('Vladik')


import math
while True:
	try:
		(a, b) = map(int, input().split())
	except:
		break
	n = math.sqrt(a)
	n = int(n)
	bt = (n + 1) * n
	if b >= bt:
		print('Vladik')
	else:
		print('Valera')


(a, b) = list(map(int, input().split()))
s = 1
aa = 1
bb = 2
for x in range(555555555):
	if a - aa >= 0 and b - bb >= 0:
		if s == 1:
			a -= aa
			aa += 2
			s = 0
		else:
			b -= bb
			bb += 2
			s = 1
	else:
		break
if s == 1:
	if a - aa < 0:
		print('Vladik')
	else:
		print('Valera')
elif b - bb < 0:
	print('Valera')
else:
	print('Vladik')


(a, b) = map(int, input().split())
k = 0
while a >= 0:
	a -= 2 * k + 1
	b -= 2 * k + 2
	if a < 0:
		print('Vladik')
		break
	if b < 0:
		print('Valera')
		break
	k += 1


(a, b) = [int(i) for i in input().split()]
count = 1
while True:
	if count % 2 == 1:
		if a >= count:
			a -= count
			count += 1
		else:
			print('Vladik')
			break
	elif b >= count:
		b -= count
		count += 1
	else:
		print('Valera')
		break


(a, b) = map(int, input().split())
i = 1
while a >= i or b >= i:
	a -= i
	i += 1
	if b < i:
		print('Valera')
		exit()
	b -= i
	i += 1
	if a < i:
		print('Vladik')
		exit()


(vd, vl) = map(int, input().split())
i = 1
while 1:
	if i % 2:
		vd = vd - i
		i = i + 1
		if vl < i:
			print('Valera')
			break
	else:
		vl = vl - i
		i = i + 1
		if vd < i:
			print('Vladik')
			break


(a, b) = map(int, input().split())
k = [a, b]
f = 0
ct = 1
while True:
	if k[f] >= ct:
		k[f] -= ct
	elif f:
		print('Valera')
		break
	else:
		print('Vladik')
		break
	f ^= 1
	ct += 1


(a, b) = map(int, input().strip().split())
vla_times = int(a ** 0.5)
val_times = int(((4 * b + 1) ** 0.5 - 1) / 2)
if vla_times > val_times:
	print('Valera')
else:
	print('Vladik')


a = list(map(int, input().split()))
(d, i) = (1, 0)
while a[i] >= d:
	a[i] -= d
	i = (i + 1) % 2
	d += 1
if i == 0:
	print('Vladik')
else:
	print('Valera')


(a, b) = input().split(' ')
a = int(a)
b = int(b)
last = 0
second = False
while True:
	last += 1
	if second == False:
		a -= last
		if b - last <= 0:
			break
		second = True
	else:
		b -= last
		if a - last <= 0:
			break
		second = False
if second == False:
	print('Valera')
else:
	print('Vladik')


import math
(a1, a2) = input().split()
a1 = int(a1)
a2 = int(a2)
if a1 < 1:
	print('Vladik')
elif a2 < 2:
	print('Valera')
elif a1 == 1 and a2 == 2:
	print('Vladik')
else:
	k1 = int(math.sqrt(a1))
	i = 1
	while a2 - i * (i + 1) >= 0:
		i = i + 1
	k2 = i - 1
	if k1 > k2:
		print('Valera')
	else:
		print('Vladik')


(a, b) = map(int, input().split())
cont = True
counter = 1
while cont:
	if counter % 2 == 1:
		if counter <= a:
			a -= counter
		else:
			print('Vladik')
			exit()
	elif counter <= b:
		b -= counter
	else:
		print('Valera')
		exit()
	counter += 1


(a, b) = tuple(input().split(' '))
a = int(a)
b = int(b)
x = 1
while a > -1 and b > -1:
	a -= x
	x += 1
	b -= x
	x += 1
if a < 0:
	print('Vladik')
else:
	print('Valera')


a = list(map(int, input().split()))
odd = int(a[0] ** (1 / 2))
even = int(((1 + 4 * a[1]) ** (1 / 2) - 1) // 2)
if odd > even:
	print('Valera')
else:
	print('Vladik')


(a, b) = map(int, input().split())
i = 0
f = 0
z = 1
while z == 1:
	i += 1
	if f == 0:
		if a - i >= 0:
			a -= i
			f = 1
		else:
			print('Vladik')
			break
	elif b - i >= 0:
		b -= i
		f = 0
	else:
		print('Valera')
		break


(naman, vidit) = map(int, input().split())
n = 1
n1 = 0
v = 2
v1 = 0
while naman >= 0:
	naman -= n
	n += 2
	n1 += 1
while vidit >= 0:
	vidit -= v
	v += 2
	v1 += 1
if n1 > v1:
	print('Valera')
else:
	print('Vladik')


from sys import stdin, stdout

def rint():
	return map(int, stdin.readline().split())
(a, b) = rint()
for i in range(1, 10 ** 9):
	if i % 2:
		a -= i
	else:
		b -= i
	if a < 0:
		print('Vladik')
		exit()
	if b < 0:
		print('Valera')
		exit()


(m, n) = map(int, input().split())
z = min(m, n)
i = 0
while m >= 0 or n >= 0:
	if i % 2 == 1:
		m = m - i
		if m < 0:
			print('Vladik')
			break
	elif i % 2 == 0:
		n = n - i
		if n < 0:
			print('Valera')
			break
	i += 1


(v, c) = map(int, input().strip().split()[:2])
k = 0
while True:
	k += 1
	if k % 2 != 0:
		if v >= k:
			v -= k
		else:
			print('Vladik')
			break
	elif c >= k:
		c -= k
	else:
		print('Valera')
		break


import math
arr = input().split()
a = int(arr[0])
b = int(arr[1])
i = 1
while a >= 0 and b >= 0:
	if i % 2 == 0:
		b -= i
	else:
		a -= i
	i += 1
if a < 0:
	print('Vladik')
else:
	print('Valera')


(vladik, valera) = map(int, input().split())
n = 1
while 1:
	if n % 2 == 1:
		vladik -= n
		if vladik < 0:
			print('Vladik')
			break
	else:
		valera -= n
		if valera < 0:
			print('Valera')
			break
	n += 1


from sys import stdin, stdout

def main():
	(a, b) = [int(_) for _ in input().split()]
	moveA = 0
	n = 1
	while a >= n:
		a -= n
		n += 2
		moveA += 1
	moveB = 0
	n = 2
	while b >= n:
		b -= n
		n += 2
		moveB += 1
	if moveA <= moveB:
		stdout.write('Vladik' + '\n')
	else:
		stdout.write('Valera' + '\n')
main()


(vl, va) = list(map(int, input().strip().split()))
for i in range(vl + va):
	if i % 2 == 0:
		vl = vl - (i + 1)
		if vl < 0:
			print('Vladik')
			break
	else:
		va = va - (i + 1)
		if va < 0:
			print('Valera')
			break


l = input().split()
a = int(l[0])
b = int(l[1])
curr = 1
count = 0
while a >= 0:
	a -= curr
	curr += 2
	count += 1
curr = 2
counter = 0
while b >= 0:
	b -= curr
	curr += 2
	counter += 1
if count <= counter:
	print('Vladik')
else:
	print('Valera')


(a, b) = map(int, input().split())
i = 1
j = 2
while True:
	if a < i:
		print('Vladik')
		exit()
	a -= i
	if b < j:
		print('Valera')
		exit()
	b -= j
	i += 2
	j += 2


import sys
from math import sqrt

def main():
	(a, b) = list(map(int, sys.stdin.readline().split()))
	nvladik = int(sqrt(a))
	nvalera = int((-1 + sqrt(1 + 4 * b)) / 2)
	if nvladik <= nvalera:
		result = 'Vladik'
	else:
		result = 'Valera'
	sys.stdout.write(result + '\n')
main()


(a, b) = list(map(int, input().split()))
curr = 1
while True:
	if curr % 2 == 1:
		a -= curr
	if curr % 2 == 0:
		b -= curr
	curr += 1
	if a < 0:
		print('Vladik')
		return
	if b < 0:
		print('Valera')
		return


(a, b) = map(int, input().split())
s = 1
nt = 0
while 1:
	if nt == 0:
		if a < s:
			print('Vladik')
			break
		a -= s
	elif nt == 1:
		if b < s:
			print('Valera')
			break
		b -= s
	s += 1
	nt = (nt + 1) % 2


temp = list(map(int, input().split()))
a = temp[0]
b = temp[1]
highest = max(temp)
for x in range(0, highest + 2):
	if a < 0 or b < 0:
		break
	if x % 2 == 1:
		a -= x
	else:
		b -= x
if a < 0:
	print('Vladik')
elif b < 0:
	print('Valera')


import math
s = input().strip().split()
a = int(s[0])
b = int(s[1])
ka = int(math.sqrt(a))
if ka * (ka + 1) > b:
	print('Valera')
else:
	print('Vladik')


from sys import stdin

def regalar_dulces(dulces_vladik, dulces_valera):
	cantidad_dulces = 1
	dona_vladik = True
	dona_valera = False
	while True:
		if dona_vladik is True:
			if dulces_vladik >= cantidad_dulces:
				dulces_vladik -= cantidad_dulces
				dona_vladik = False
				dona_valera = True
				cantidad_dulces += 1
			else:
				print('Vladik')
				break
		if dona_valera is True:
			if dulces_valera >= cantidad_dulces:
				dulces_valera -= cantidad_dulces
				dona_valera = False
				dona_vladik = True
				cantidad_dulces += 1
			else:
				print('Valera')
				break
for line in stdin:
	cant = line.splitlines()
	break
a = cant[0].split()[0]
b = cant[0].split()[1]
regalar_dulces(int(a), int(b))


(a, b) = map(int, input().split())
flag = True
for i in range(1, 1000000):
	if flag == True:
		flag = False
		if a < i:
			print('Vladik')
			return
		a -= i
	else:
		flag = True
		if b < i:
			print('Valera')
			return
		b -= i


import sys
l = list(map(int, sys.stdin.readline().rstrip().split()))
cur = 1
t = 0
while True:
	if l[t] < cur:
		if t:
			sys.stdout.write('Valera')
			break
		else:
			sys.stdout.write('Vladik')
			break
	else:
		l[t] -= cur
		cur += 1
		if t:
			t = 0
		else:
			t += 1


(x, y) = map(int, input().split())
ka = 1
while True:
	if ka % 2 == 0:
		y = y - ka
		if y < 0:
			print('Valera')
			break
	else:
		x = x - ka
		if x < 0:
			print('Vladik')
			break
	ka = ka + 1


(a, b) = map(int, input().split())
n = 1
while True:
	if a < n:
		print('Vladik')
		exit()
	else:
		a -= n
		n += 1
	if b < n:
		print('Valera')
		exit()
	else:
		b -= n
		n += 1


(a, b) = [int(i) for i in input().split()]
t = 1
p = 2
while True:
	if a >= t:
		a -= t
		t += 2
	else:
		print('Vladik')
		break
	if b >= p:
		b -= p
		p += 2
	else:
		print('Valera')
		break


(a, b) = map(int, input().split())
v = 1
vladikTurn = True
while a >= v or b >= v:
	if vladikTurn:
		if a - v >= 0:
			a -= v
		else:
			break
	elif b - v >= 0:
		b -= v
	else:
		break
	v += 1
	vladikTurn = not vladikTurn
if not vladikTurn:
	print('Valera')
else:
	print('Vladik')


x = list(map(int, input().split()))
pos = 0
c = 1
while True:
	if x[pos] >= c:
		x[pos] -= c
	else:
		print('Vladik' if pos % 2 == 0 else 'Valera')
		exit(0)
	c += 1
	pos = (pos + 1) % 2


(n, m) = map(int, input().split())
i = 1
u = False
q = False
while True:
	if n < i and i % 2 != 0:
		u = True
		break
	if m < i and i % 2 == 0:
		q = True
		break
	if i % 2 != 0:
		n -= i
	else:
		m -= i
	i += 1
if q:
	print('Valera')
if u:
	print('Vladik')


v = list(map(int, input().split()))
v.insert(0, 0)
flag = 1
i = 1
while v[-flag] >= 0:
	v[flag] -= i
	flag = -flag
	i += 1
if v[1] < 0:
	print('Vladik')
else:
	print('Valera')


(a, b) = map(int, input().split())
k = 0
count = 1
while k != 1:
	a = a - count
	count = count + 1
	b = b - count
	count = count + 1
	if a < 0:
		print('Vladik')
		k = 1
		break
	elif b < 0:
		print('Valera')
		k = 1
		break


def solve(a, b):
	iter = int(10 ** 4 * 10 ** 0.5)
	for k in range(1, 10 ** 9):
		a_star = k ** 2
		b_star = k * (k + 1)
		if a_star > a:
			return 'Vladik'
		if b_star > b:
			return 'Valera'
(a, b) = input().split()
a = int(a)
b = int(b)
print(solve(a, b))


(a, b) = input().split(' ')
a = int(a)
b = int(b)
temp = 0
turn = True
while True:
	temp += 1
	if turn:
		a -= temp
	else:
		b -= temp
	if a < 0:
		print('Vladik')
		break
	if b < 0:
		print('Valera')
		break
	turn = not turn


(a, b) = map(int, input().split())
(x, y) = (1, 2)
while True:
	if a < x:
		print('Vladik')
		exit()
	a -= x
	if b < y:
		print('Valera')
		exit()
	b -= y
	x += 2
	y += 2


from math import sqrt, floor

def main():
	(a, b) = map(float, input().split())
	print(('Vladik', 'Valera')[floor(sqrt(a)) > floor(sqrt(b + 0.25) - 0.5)])
main()


(a, b) = [int(x) for x in input().split()]
n = 1
while True:
	if n % 2 == 1:
		if a - (n - 1) // 2 * ((n - 1) // 2) < 0:
			print('Vladik')
			break
	elif b - n // 2 * (n // 2) + n // 2 < 0:
		print('Valera')
		break
	n += 1


from math import sqrt, floor
(a, b) = list(map(int, input().split()))
q = floor(sqrt(a))
w = floor((sqrt(4 * b + 1) - 1) / 2)
print('Vladik' if q <= w else 'Valera')


def solution(l1):
	vladik = l1[0]
	valera = l1[1]
	i = 1
	while True:
		if i % 2:
			vladik -= i
		else:
			valera -= i
		if vladik < 0:
			return 'Vladik'
		if valera < 0:
			return 'Valera'
		i += 1

def answer():
	l1 = [int(x) for x in input().split()]
	print(solution(l1))
answer()


(a, b) = map(int, input().split(' '))
step = 1
while True:
	if a < step:
		print('Vladik')
		exit()
	a -= step
	if b < step + 1:
		print('Valera')
		exit()
	b -= step + 1
	step += 2


import math
(a, b) = map(int, input().split())
temp = int(math.sqrt(2 * (a + b)))
n = 0
na = 0
nb = 0
suma = 0
sumb = 0
i = 1
na = 0
while suma <= a:
	na += 1
	suma += i
	i += 2
na -= 1
i = 2
while sumb <= b:
	sumb += i
	i += 2
	nb += 1
nb -= 1
if na > nb:
	print('Valera')
else:
	print('Vladik')


(a, b) = (int(x) for x in input().split(' '))
k = 1
while b >= 0:
	a -= k
	k += 1
	if a < 0:
		break
	b -= k
	k += 1
if a < 0:
	print('Vladik')
else:
	print('Valera')


vl_Va = [int(x) for x in input().strip().split()]
vl = vl_Va[0]
Va = vl_Va[1]
n_vl = 0
val = 1
while vl - val >= 0:
	n_vl += 1
	vl -= val
	val += 2
n_Va = 0
val = 2
while Va - val >= 0:
	n_Va += 1
	Va -= val
	val += 2
if n_vl > n_Va:
	print('Valera')
else:
	print('Vladik')


(vla, val) = map(int, input().split())
c1 = 1
c2 = 2
ct = 1
while True:
	if ct % 2 == 1:
		if vla < c1:
			print('Vladik')
			break
		vla -= c1
		c1 += 2
	else:
		if val < c2:
			print('Valera')
			break
		val -= c2
		c2 += 2
	ct += 1


string = input()
numbers = string.split()
a = int(numbers[0])
b = int(numbers[1])
n = 0
while True:
	n += 1
	if n % 2 == 0:
		b -= n
		if b < 0:
			print('Valera')
			break
	else:
		a -= n
		if a < 0:
			print('Vladik')
			break


(a, b) = list(map(int, input().split()))
i = 1
cur = 0
while (1 - cur) * a + cur * b >= i:
	if cur == 0:
		a -= i
	else:
		b -= i
	i += 1
	cur = 1 - cur
if cur == 0:
	print('Vladik')
else:
	print('Valera')


(a, b) = map(int, input().split())
f = [b, a]
c = 1
while True:
	if f[c % 2] < c:
		break
	else:
		f[c % 2] -= c
		c += 1
print(['Valera', 'Vladik'][c % 2])


import math
x = list(map(int, input().split()))
n = int(math.sqrt(x[0]))
y = x[1] - (pow(n, 2) + n)
if y >= 0:
	print('Vladik')
else:
	print('Valera')


(a, b) = map(int, input().split())
u = 0
while True:
	u += 1
	a -= u
	if a < 0:
		print('Vladik')
		break
	u += 1
	b -= u
	if b < 0:
		print('Valera')
		break


def main():
	counts = [int(x) for x in input().split()]
	(vlad_quantity, valera_quantity) = (counts[0], counts[1])
	counter = 1
	while True:
		if counter % 2 != 0:
			if vlad_quantity >= counter:
				vlad_quantity -= counter
			else:
				return 'Vladik'
		elif valera_quantity >= counter:
			valera_quantity -= counter
		else:
			return 'Valera'
		counter += 1
print(main())


(vladiks_nr, valeras_nr) = (int(x) for x in input().split())
curr_player = 0
curr_nr = vladiks_nr
curr_bet = 1
while curr_nr >= curr_bet:
	if curr_player == 0:
		vladiks_nr -= curr_bet
		curr_bet += 1
		curr_player = 1
		curr_nr = valeras_nr
	elif curr_player == 1:
		valeras_nr -= curr_bet
		curr_bet += 1
		curr_player = 0
		curr_nr = vladiks_nr
if curr_player == 0:
	print('Vladik')
else:
	print('Valera')


import math

def quadratic_formula(a, b, c):
	answer = (b * -1 + math.sqrt(b * b - 4 * a * c)) / (2 * a)
	return answer

def find_n_arithmetic_sum(total, first, difference=2):
	n = quadratic_formula(difference, 2 * first - difference, 2 * total * -1)
	n = n // 1
	return n

def main():
	a = b = 0
	an = bn = 0
	(a, b) = map(int, input().split())
	an = find_n_arithmetic_sum(a, 1)
	bn = find_n_arithmetic_sum(b, 2)
	if an > bn:
		print('Valera')
	else:
		print('Vladik')
	return
main()


(a, b) = list(map(int, input().split()))
d1 = int(a ** 0.5)
d2 = int(((1 + 4 * b) ** 0.5 - 1) / 2)
if d1 > d2:
	print('Valera')
else:
	print('Vladik')


from math import pow
(x, y) = map(int, input().split())
a = int(pow(x, 0.5)) + 1
b = int((-1 + pow(1 + 4 * y, 0.5)) / 2) + 1
if a <= b:
	print('Vladik')
else:
	print('Valera')


(a, i, c) = (list(map(int, input().split())), 1, 0)
while a[c] >= i:
	(a[c], i, c) = (a[c] - i, i + 1, 1 - c)
print('Valera' if c else 'Vladik')


import sys
input = sys.stdin.readline

def ceil(x):
	if x != int(x):
		x = int(x) + 1
	return x

def factorial(x, m):
	val = 1
	while x > 0:
		val = val * x % m
		x -= 1
	return val

def swaparr(arr, a, b):
	temp = arr[a]
	arr[a] = arr[b]
	arr[b] = temp

def gcd(a, b):
	if b == 0:
		return a
	return gcd(b, a % b)

def nCr(n, k):
	if k > n - k:
		k = n - k
	res = 1
	for i in range(k):
		res = res * (n - i)
		res = res / (i + 1)
	return int(res)

def upper_bound(a, x, lo=0, hi=None):
	if hi == None:
		hi = len(a)
	while lo < hi:
		mid = (lo + hi) // 2
		if a[mid] < x:
			lo = mid + 1
		else:
			hi = mid
	return lo

def primefs(n):
	primes = {}
	while n % 2 == 0 and n > 0:
		primes[2] = primes.get(2, 0) + 1
		n = n // 2
	for i in range(3, int(n ** 0.5) + 2, 2):
		while n % i == 0 and n > 0:
			primes[i] = primes.get(i, 0) + 1
			n = n // i
	if n > 2:
		primes[n] = primes.get(n, 0) + 1
	return primes

def power(x, y, p):
	res = 1
	x = x % p
	if x == 0:
		return 0
	while y > 0:
		if y & 1 == 1:
			res = res * x % p
		y = y >> 1
		x = x * x % p
	return res

def swap(a, b):
	temp = a
	a = b
	b = temp
	return (a, b)

def find(x, link):
	p = x
	while p != link[p]:
		p = link[p]
	while x != p:
		nex = link[x]
		link[x] = p
		x = nex
	return p

def union(x, y, link, size):
	x = find(x, link)
	y = find(y, link)
	if size[x] < size[y]:
		(x, y) = swap(x, y)
	if x != y:
		size[x] += size[y]
		link[y] = x

def sieve(n):
	prime = [True for i in range(n + 1)]
	p = 2
	while p * p <= n:
		if prime[p] == True:
			for i in range(p * p, n + 1, p):
				prime[i] = False
		p += 1
	return prime
MAXN = int(100000.0 + 5)

def spf_sieve():
	spf[1] = 1
	for i in range(2, MAXN):
		spf[i] = i
	for i in range(4, MAXN, 2):
		spf[i] = 2
	for i in range(3, ceil(MAXN ** 0.5), 2):
		if spf[i] == i:
			for j in range(i * i, MAXN, i):
				if spf[j] == j:
					spf[j] = i

def factoriazation(x):
	ret = {}
	while x != 1:
		ret[spf[x]] = ret.get(spf[x], 0) + 1
		x = x // spf[x]
	return ret

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

def float_array():
	return list(map(float, input().strip().split()))

def str_array():
	return input().strip().split()
MOD = int(1000000000.0) + 7
CMOD = 998244353
INF = float('inf')
NINF = -float('inf')
from itertools import permutations
import math

def solve():
	(a, b) = map(int, input().split())
	for i in range(1, 10 ** 9):
		if i % 2 == 1:
			a -= i
		else:
			b -= i
		if a < 0:
			print('Vladik')
			return
		elif b < 0:
			print('Valera')
			return
for _ in range(1):
	solve()


(n, v) = [int(i) for i in input().split()]
i = 0
j = 1
while True:
	if i % 2 == 0:
		if n >= j:
			n -= j
			j += 1
			i = (i + 1) % 2
		else:
			print('Vladik')
			break
	elif v >= j:
		v -= j
		j += 1
		i = (i + 1) % 2
	else:
		print('Valera')
		break


(a, b) = map(int, input().split())
diff = 1
count = 0
p = True
while p:
	if not count % 2:
		a -= diff
		diff += 1
	else:
		b -= diff
		diff += 1
	count += 1
	if a <= 0 or b <= 0:
		if b >= diff:
			b -= diff
			count += 1
		elif a >= diff:
			a -= diff
			count += 1
		else:
			p = False
if a <= 0:
	if a < 0:
		print('Vladik')
	else:
		print('Valera')
elif b <= 0:
	if b == 0:
		print('Vladik')
	else:
		print('Valera')


(a, b) = list(map(int, input().split()))
strt = 1
i = 1
while 1:
	if i % 2 != 0:
		if a - strt >= 0:
			a = a - strt
			strt += 1
		else:
			print('Vladik')
			break
	elif b - strt >= 0:
		b = b - strt
		strt += 1
	else:
		print('Valera')
		break
	i += 1


(a, b) = list(map(int, input().split()))
v1 = int(a ** 0.5)
v2 = (-1 + int((1 + 4 * b) ** 0.5)) // 2
if v1 > v2:
	print('Valera')
else:
	print('Vladik')


a = input()
b = a.split(' ')
vk = int(b[0])
va = int(b[1])
flag1 = True
flag2 = True
count = 1
while flag1 == True:
	if flag2 == True:
		if vk - count >= 0:
			vk = vk - count
			count = count + 1
			flag2 = False
		else:
			flag1 = False
	elif va - count >= 0:
		va = va - count
		count = count + 1
		flag2 = True
	else:
		flag1 = False
if flag2 == True:
	print('Vladik')
else:
	print('Valera')


(a, b) = [int(x) for x in input().split(' ')]
turn = True
c = 1
while True:
	if turn:
		if a - c >= 0:
			a -= c
			turn = False
		else:
			print('Vladik')
			break
	elif b - c >= 0:
		b -= c
		turn = True
	else:
		print('Valera')
		break
	c += 1


(a, b) = map(int, input().split())
i = 1
win = ''
while a >= 0 and b >= 0:
	if i % 2 == 1:
		if a - i < 0:
			win = 'a'
			break
		a = a - i
	else:
		if b - i < 0:
			win = 'b'
		b = b - i
	i += 1
if win == 'a':
	print('Vladik')
else:
	print('Valera')


(vladik, valera) = [int(x) for x in input().split()]
comp = int(vladik ** 0.5)
print(['Valera', 'Vladik'][comp * (comp + 1) <= valera])


(vladik, valera) = list(map(int, input().split(' ')))
tbg = 1
count = 0
while True:
	if vladik < tbg and count % 2 == 0:
		print('Vladik')
		break
	if valera < tbg:
		print('Valera')
		break
	if count % 2 == 0:
		vladik -= tbg
		tbg += 1
	else:
		valera -= tbg
		tbg += 1
	count += 1


(m, n) = map(int, input().split())
for i in range(min(m, n) + 1):
	m -= i * 2 + 1
	n -= i * 2 + 2
	if m < 0:
		print('Vladik')
		break
	elif n < 0:
		print('Valera')
		break


(a, b) = map(int, input().split())
vladik = True
i = 1
while a > -1 and b > -1:
	if vladik:
		a -= i
	else:
		b -= i
	i += 1
	vladik = not vladik
if vladik:
	print('Valera')
else:
	print('Vladik')


(a, b) = map(int, input().split())
l = 2
k = 1
while True:
	if a - k >= 0:
		a -= k
		k += 2
	else:
		print('Vladik')
		break
	if b - l >= 0:
		b -= l
		l += 2
	else:
		print('Valera')
		break


import math, string, itertools, fractions, heapq, collections, re, array, bisect, sys, copy, functools
sys.setrecursionlimit(10 ** 7)
inf = 10 ** 20
eps = 1.0 / 10 ** 10
mod = 10 ** 9 + 7
dd = [(-1, 0), (0, 1), (1, 0), (0, -1)]
ddn = [(-1, 0), (-1, 1), (0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-1, -1)]

def LI():
	return list(map(int, sys.stdin.readline().split()))

def LLI():
	return [tuple(map(int, l.split())) for l in sys.stdin]

def LI_():
	return [int(x) - 1 for x in sys.stdin.readline().split()]

def LF():
	return [float(x) for x in sys.stdin.readline().split()]

def LS():
	return sys.stdin.readline().split()

def I():
	return int(sys.stdin.readline())

def F():
	return float(sys.stdin.readline())

def S():
	return input()

def pf(s):
	return print(s, flush=True)

def main():
	(a, b) = LI()
	t = 1
	while 1:
		if a < t:
			return 'Vladik'
		a -= t
		t += 1
		if b < t:
			return 'Valera'
		b -= t
		t += 1
	return -1
print(main())


from math import sqrt
import sys
s = sys.stdin.read().strip().split('\n')
a = int(s[0].split()[0])
b = int(s[0].split()[1])
c = int(sqrt(a))
d = int(sqrt(b))
if b - d ** 2 < d:
	d -= 1
if c <= d:
	print('Vladik')
else:
	print('Valera')


def v_v(a, b):
	count = 1
	while True:
		if count % 2 == 1:
			a -= count
			if a < 0:
				return 'Vladik'
		else:
			b -= count
			if b < 0:
				return 'Valera'
		count += 1
(A, B) = [int(j) for j in input().split()]
print(v_v(A, B))


(a, b) = map(int, input().split())
temp = int(b ** 0.5)
A = int(a ** 0.5)
B = temp - (temp * (temp + 1) > b)
print(('Vladik', 'Valera')[A > B])


(x, y) = map(int, input().split())
i = 0
while 1:
	if i % 2 == 0:
		y -= i
	else:
		x -= i
	if x < 0:
		print('Vladik')
		exit()
	if y < 0:
		print('Valera')
		exit()
	i += 1


def main():
	(a, b) = map(int, input().split())
	i = 1
	while 1:
		if i & 1:
			if a >= i:
				a -= i
			else:
				print('Vladik')
				break
		elif b >= i:
			b -= i
		else:
			print('Valera')
			break
		i += 1
main()


(a, b) = list(map(int, input().split(' ')))
i = 1
d = 0
while a >= 0 and b >= 0:
	if d == 0:
		a -= i
		d = 1
	else:
		b -= i
		d = 0
	i += 1
if d == 1:
	print('Vladik')
else:
	print('Valera')


(n, m) = map(int, input().split())
x = 1
while 1:
	if x % 2 == 0:
		if x > m:
			print('Valera')
			break
		m = m - x
	else:
		if x > n:
			print('Vladik')
			break
		n = n - x
	x += 1


data_str = input('')
data = [int(num) for num in data_str.split()]
step1 = 0
while True:
	give = step1 * 2 + 1
	data[0] -= give
	if data[0] < 0:
		break
	step1 += 1
step2 = 0
while True:
	give = (step2 + 1) * 2
	data[1] -= give
	if data[1] < 0:
		break
	step2 += 1
if step1 > step2:
	print('Valera')
else:
	print('Vladik')


a = list(map(int, input().split()))
b = ['Valera', 'Vladik']
a = a[::-1]
for i in range(1, 1000100):
	j = i % 2
	if a[j] >= i:
		a[j] -= i
	else:
		print(b[j])
		break


(a, b) = map(int, input().split())
i = 1
t = 1
while t and i <= a or (not t and i <= b):
	if t:
		a -= i
		t = 0
	else:
		b -= i
		t = 1
	i += 1
print('Vladik' if t else 'Valera')


def do(a, b):
	step = 0
	while True:
		if step & 1:
			if a - step < 0:
				return 'Vladik'
			else:
				a = a - step
		if step & 1 == 0:
			if b - step < 0:
				return 'Valera'
			else:
				b = b - step
		step = step + 1
(a, b) = map(int, input().split())
print(do(a, b))


(a, b) = map(int, input().split())
n = 1
while a > 0 and b > 0:
	if a - n ** 2 < 0:
		print('Vladik')
		break
	if b - n * (n + 1) < 0:
		print('Valera')
		break
	n += 1


(a, b) = (int(i) for i in input().split())
am = (4 * a) ** (1 / 2) // 2
bm = ((1 + 4 * b) ** (1 / 2) - 1) // 2
if am > bm:
	print('Valera')
else:
	print('Vladik')


from math import *
(a, b) = map(int, input().split())
ans = 1
flag = 0
turn = 1
while flag == 0:
	if turn == 1:
		if a - ans >= 0:
			a -= ans
			turn = 2
			ans += 1
		else:
			flag = 1
			break
	elif b - ans >= 0:
		b -= ans
		turn = 1
		ans += 1
	else:
		flag = 1
		break
if turn == 1:
	print('Vladik')
else:
	print('Valera')


import math
(a, b) = map(int, input().split())
n = int(math.sqrt(a))
res = 0
for i in range(1, b):
	if i * i + i > b:
		break
	else:
		res += 1
if n <= res:
	print('Vladik')
else:
	print('Valera')


(X, Y) = map(int, input().split())
for i in range(1, 100000000):
	if i % 2 == 0:
		Y = Y - i
	if i % 2 != 0:
		X = X - i
	if X < 0:
		print('Vladik')
		break
	if Y < 0:
		print('Valera')
		break


(a, b) = map(int, input().split())
k = 1
while 1:
	if a >= k:
		a -= k
	else:
		print('Vladik')
		break
	k += 1
	if b >= k:
		b -= k
	else:
		print('Valera')
		break
	k += 1


l = [int(i) for i in input().split()]
i = 1
t = 0
while l[i] >= t:
	l[i] = l[i] - t
	i = 1 - i
	t = t + 1
if t % 2 == 1:
	print('Vladik')
else:
	print('Valera')