A. Vladik and Courtesy

problem_index: A

time_limit: 2 seconds

memory_limit: 256 megabytes

note:
Illustration for first test case:
![image](images/cf_811_A/1.png)
Illustration for second test case:
![image](images/cf_811_A/2.png)

solutions: ["from collections import deque, Counter\nfrom itertools import combinations, permutations\nfrom math import sqrt\nimport unittest\n\ndef read_int():\n\treturn int(input().strip())\n\ndef read_int_array():\n\treturn [int(i) for i in input().strip().split(' ')]\n(a, b) = read_int_array()\nstep = 1\nwhile a >= 0 and b >= 0:\n\tif step % 2 == 1:\n\t\ta -= step\n\telse:\n\t\tb -= step\n\tstep += 1\nprint('Vladik' if a < 0 else 'Valera')\n", "candy = [int(i) for i in input().split()]\ni = 0\nkov = 0\nwhile True:\n\ti += 1\n\tif candy[kov] < i:\n\t\tprint('Vladik' if kov == 0 else 'Valera')\n\t\tbreak\n\tcandy[kov] -= i\n\tkov = 1 - kov\n", "(a, b) = map(int, input().split())\ni = 1\nwhile True:\n\tif i % 2:\n\t\tif a < i:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\t\ta -= i\n\telse:\n\t\tif b < i:\n\t\t\tprint('Valera')\n\t\t\tbreak\n\t\tb -= i\n\ti += 1\n", "import sys\nimport math\n(a, b) = map(int, input().split())\nfor i in range(10000000):\n\tif i % 2 == 0:\n\t\ta -= i + 1\n\t\tif a < 0:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\telse:\n\t\tb -= i + 1\n\t\tif b < 0:\n\t\t\tprint('Valera')\n\t\t\tbreak\n", "(a, b) = map(int, input().split())\ncur = 1\nwhile True:\n\tif a - cur < 0:\n\t\tprint('Vladik')\n\t\texit()\n\ta -= cur\n\tcur += 1\n\tif b - cur < 0:\n\t\tprint('Valera')\n\t\texit()\n\tb -= cur\n\tcur += 1\n", "(vladik1, valera1) = input().split()\nvladik = int(vladik1)\nvalera = int(valera1)\ni = 0\ncandy = 0\nwhile True:\n\ti = i + 1\n\tcandy = candy + 1\n\tif i % 2 != 0:\n\t\tif vladik >= candy:\n\t\t\tvladik = vladik - candy\n\t\telse:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\telif i % 2 == 0:\n\t\tif valera >= candy:\n\t\t\tvalera = valera - candy\n\t\telse:\n\t\t\tprint('Valera')\n\t\t\tbreak\n", "(n, m) = map(int, input().split())\ni = 1\nwhile True:\n\tif i > n:\n\t\tprint('Vladik')\n\t\tbreak\n\telse:\n\t\tn -= i\n\t\ti += 1\n\tif i > m:\n\t\tprint('Valera')\n\t\tbreak\n\telse:\n\t\tm -= i\n\t\ti += 1\n", "(vl, va) = list(map(int, input().split()))\nn1 = int(vl ** 0.5)\nd = 1 + 4 * va\nn2 = int((-1 + d ** 0.5) / 2)\nif n1 > n2:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "(x, y) = map(int, input().split())\ng = 1\nwhile True:\n\tx -= g\n\tif x < 0:\n\t\tprint('Vladik')\n\t\tbreak\n\ty -= g + 1\n\tif y < 0:\n\t\tprint('Valera')\n\t\tbreak\n\tg += 2\n", "(a, b) = [int(item) for item in input().split()]\nk = 0\nwhile 1:\n\tif k + 1 + 2 * k * (k + 1) // 2 > a:\n\t\tprint('Vladik')\n\t\tbreak\n\tif 2 * ((k + 2) * (k + 1) // 2) > b:\n\t\tprint('Valera')\n\t\tbreak\n\tk += 1\n", "r = ('Vladik', 'Valera')\n(a, b) = map(int, input().split())\nc = 1\nwhile True:\n\tif c % 2:\n\t\ta -= c\n\telse:\n\t\tb -= c\n\tc += 1\n\tif a < 0 or b < 0:\n\t\tbreak\nprint(r[c % 2])\n", "(vlad, val) = (0, 0)\n\ndef get_input():\n\tglobal vlad, val\n\tfirst_arr = [int(x) for x in input().split()]\n\t(vlad, val) = (first_arr[0], first_arr[1])\n\ndef main():\n\tget_input()\n\tglobal vlad, val\n\tgiven = 1\n\twhile 1:\n\t\tif given % 2 == 1:\n\t\t\tvlad = vlad - given\n\t\telse:\n\t\t\tval = val - given\n\t\tgiven = given + 1\n\t\tif vlad < 0:\n\t\t\tprint('Vladik')\n\t\t\treturn\n\t\telif val < 0:\n\t\t\tprint('Valera')\n\t\t\treturn\nmain()\n", "(a, b) = map(int, input().split())\ncnt = 0\nwhile a >= 0 and b >= 0:\n\tcnt += 1\n\tif cnt % 2 == 0:\n\t\tb = b - cnt\n\telse:\n\t\ta = a - cnt\nif cnt % 2 == 0:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "(n, m) = map(int, input().split())\ni = 1\nflag = 0\nwhile n >= 0 and m >= 0:\n\tif flag == 0:\n\t\tn -= i\n\t\tflag = 1\n\telse:\n\t\tm -= i\n\t\tflag = 0\n\ti += 1\nif flag == 0:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "s = input().split()\n(a, b) = (int(s[0]), int(s[1]))\nan = int(a ** 0.5)\nbn = int(b ** (1 / 3))\nwhile True:\n\tif bn * (bn + 1) == b:\n\t\tbreak\n\telif bn * (bn + 1) > b:\n\t\tbn -= 1\n\t\tbreak\n\tbn += 1\nprint('Vladik' if an <= bn else 'Valera')\n", "(a, b) = map(int, input().split())\nx = True\ni = 1\nwhile x == True:\n\tif i % 2 == 1:\n\t\ta -= i\n\telse:\n\t\tb -= i\n\ti += 1\n\tif a < 0 or b < 0:\n\t\tprint('Vladik' if a < 0 else 'Valera')\n\t\tx = False\n", "(a, b) = list(map(int, input().split()))\nfor i in range(1, 10 ** 10):\n\tif i % 2 != 0:\n\t\tif a < i:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\t\telse:\n\t\t\ta -= i\n\telif b < i:\n\t\tprint('Valera')\n\t\tbreak\n\telse:\n\t\tb -= i\n", "(a, b) = map(int, input().split())\ni = 1\ns = ''\nwhile i:\n\tif i % 2 != 0 and a >= i:\n\t\ta = a - i\n\t\ti += 1\n\t\ts = 'Valera'\n\telif i % 2 == 0 and b >= i:\n\t\tb = b - i\n\t\ti += 1\n\t\ts = 'Vladik'\n\telse:\n\t\ti = 0\nprint(s)\n", "import math\n\ndef Main():\n\t(a, b) = map(int, input().split())\n\ta = int(math.sqrt(a))\n\tif b >= a * (a + 1):\n\t\tprint('Vladik')\n\telse:\n\t\tprint('Valera')\nMain()\n", "import math\n(n, k) = map(int, input().split())\nx = math.floor(math.sqrt(n))\ny = x * (x + 1)\nif y <= k:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "a = list(map(int, input().split()))\nfor i in range(99999):\n\ta[i % 2] -= i + 1\n\tif a[i % 2] < 0:\n\t\tbreak\nprint('Vladik' if a[0] < 0 else 'Valera')\n", "from sys import stdin\nfor line in stdin:\n\tcadena = line.splitlines()\n\tbreak\na = cadena[0].split()[0]\nb = cadena[0].split()[1]\ni = 0\ndulces = [int(a), int(b)]\ncont = 1\nwhile dulces[i] >= cont:\n\tdulces[i] = dulces[i] - cont\n\ti += 1\n\tcont += 1\n\tif i > 1:\n\t\ti = 0\nif i == 0:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "(a, b) = map(int, input().split())\ni = 1\nc = [a, b]\nwhile c[(i + 1) % 2] >= i:\n\tc[(i + 1) % 2] -= i\n\ti += 1\nif i % 2 == 1:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "cnt = list(map(int, input().split()))\nnxt = 1\nwho = 0\nwhile cnt[who] >= nxt:\n\tcnt[who] -= nxt\n\tnxt += 1\n\twho ^= 1\nprint('Vladik' if who == 0 else 'Valera')\n", "a = list(map(int, input().split()))\nr = 0\ns = 1\nwhile a[0] >= 0 and a[1] >= 0:\n\tif r == 0:\n\t\ta[0] -= s\n\t\tr = 1\n\telse:\n\t\ta[1] -= s\n\t\tr = 0\n\ts += 1\nif a[0] < 0:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "(vd, va) = map(int, input().split())\n\ndef sm(n):\n\treturn n * n + n\nfrom math import sqrt as S\na = int(S(vd))\nb = 0\nlo = 0\nhi = 10 ** 9\nwhile lo <= hi:\n\tmid = (lo + hi) // 2\n\tif sm(mid) <= va:\n\t\tans = mid\n\t\tlo = mid + 1\n\telse:\n\t\thi = mid - 1\nb = ans\nif a > b:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "m = input()\nm = m.split(' ')\na = int(m[0])\nb = int(m[1])\ncounter = 1\nwhile a >= 0 and b >= 0:\n\ta = a - counter\n\tif a < 0 and b >= 0:\n\t\tans = 'Vladik'\n\tcounter = counter + 1\n\tb = b - counter\n\tcounter = counter + 1\n\tif b < 0 and a >= 0:\n\t\tans = 'Valera'\nprint(ans)\n", "(a, b) = (int(x) for x in input().split())\ni = 1\nwhile True:\n\tif i % 2:\n\t\ta -= i\n\t\tif a < 0:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\telse:\n\t\tb -= i\n\t\tif b < 0:\n\t\t\tprint('Valera')\n\t\t\tbreak\n\ti += 1\n", "from math import sqrt\n(a, b) = map(int, input().split())\nla = max(1, int(sqrt(a)) - 1)\nlb = max(1, int((-1 - sqrt(1 + 4 * b)) / 2) - 1)\nwhile la * la <= a:\n\tla += 1\nla -= 1\nwhile lb * (lb + 1) <= b:\n\tlb += 1\nlb -= 1\nif la <= lb:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "x = [int(s) for s in input().split(' ')]\ni = 0\nwhile x[i % 2] > i:\n\tx[i % 2] -= i + 1\n\ti += 1\nif i % 2 == 0:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "(a, b) = map(int, input().split())\nfor n in range(1, 10 ** 40):\n\tif n % 2 != 0:\n\t\ta = a - n\n\telif n % 2 == 0:\n\t\tb = b - n\n\tif a < 0:\n\t\tprint('Vladik')\n\t\tbreak\n\tif b < 0:\n\t\tprint('Valera')\n\t\tbreak\n", "def VladikAndCourtsey(a, b):\n\tstep = 1\n\twhile True:\n\t\tif step % 2 == 0:\n\t\t\tif b < step:\n\t\t\t\treturn 'Valera'\n\t\t\tb -= step\n\t\telse:\n\t\t\tif a < step:\n\t\t\t\treturn 'Vladik'\n\t\t\ta -= step\n\t\tstep += 1\n(a, b) = [int(x) for x in input().split()]\nprint(VladikAndCourtsey(a, b))\n", "(a, b) = list(map(int, input().split()))\nturn = True\nnow = 1\nwhile True:\n\tif turn:\n\t\tif a < now:\n\t\t\tprint('Vladik')\n\t\t\treturn\n\t\telse:\n\t\t\ta -= now\n\telif b < now:\n\t\tprint('Valera')\n\t\treturn\n\telse:\n\t\tb -= now\n\tnow += 1\n\tturn = not turn\n", "(a, b) = map(int, input().split())\ni = 2\nj = 1\nwhile True:\n\ta -= j\n\tif a < 0:\n\t\tprint('Vladik')\n\t\tbreak\n\tb -= i\n\tif b < 0:\n\t\tprint('Valera')\n\t\tbreak\n\ti += 2\n\tj += 2\n", "import math as m\n[a, b] = [int(x) for x in input().split()]\nx = m.floor(m.sqrt(a))\ny = m.floor((m.sqrt(4 * b + 1) - 1) / 2)\nprint('Vladik' if x <= y else 'Valera')\n", "import itertools\n(a, b) = map(int, input().split())\n(c1, c2) = (0, 0)\n(i1, i2) = (0, 0)\nfor i in itertools.count(1, 2):\n\tc1 += i\n\tif c1 > a:\n\t\tbreak\n\ti1 += 1\nfor i in itertools.count(2, 2):\n\tc2 += i\n\tif c2 > b:\n\t\tbreak\n\ti2 += 1\nprint('Valera' if c1 >= c2 else 'Vladik')\n", "import sys\nimport math\nimport bisect\nimport itertools\n\ndef solve(a, b):\n\tcnt = 0\n\twhile True:\n\t\tcnt += 1\n\t\tif cnt % 2 == 1:\n\t\t\tif a < cnt:\n\t\t\t\treturn True\n\t\t\telse:\n\t\t\t\ta -= cnt\n\t\telif b < cnt:\n\t\t\treturn False\n\t\telse:\n\t\t\tb -= cnt\n\treturn -1\n\ndef main():\n\t(a, b) = map(int, input().split())\n\tif solve(a, b):\n\t\tprint('Vladik')\n\telse:\n\t\tprint('Valera')\nmain()\n", "(a, b) = map(int, input().split())\ni = 1\nwhile True:\n\tif a >= i:\n\t\ta -= i\n\t\ti += 1\n\telse:\n\t\tprint('Vladik')\n\t\texit(0)\n\tif b >= i:\n\t\tb -= i\n\t\ti += 1\n\telse:\n\t\tprint('Valera')\n\t\texit(0)\n", "(a, b) = map(int, input().split())\nn = int(a ** 0.5)\nif n * (n + 1) <= b:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "def candy(a, b):\n\tcur = 1\n\twhile True:\n\t\tif cur & 1 == 1:\n\t\t\ta -= cur\n\t\t\tif a < 0:\n\t\t\t\treturn 'Vladik'\n\t\telse:\n\t\t\tb -= cur\n\t\t\tif b < 0:\n\t\t\t\treturn 'Valera'\n\t\tcur += 1\n(a, b) = list(map(int, input().split()))\nprint(candy(a, b))\n", "(a, b) = list(map(int, input().split()))\ncnt = 0\nwhile True:\n\tcnt += 1\n\ta -= cnt\n\tif a < 0:\n\t\tprint('Vladik')\n\t\tbreak\n\tcnt += 1\n\tb -= cnt\n\tif b < 0:\n\t\tprint('Valera')\n\t\tbreak\n", "(n, m) = map(int, input().split())\na = n\nb = m\nfor i in range(1, n + m + 1):\n\tif i % 2 != 0:\n\t\ta -= i\n\telse:\n\t\tb -= i\n\tif a < 0 or b < 0:\n\t\tbreak\nif a < 0:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "R = lambda : map(int, input().split())\n(a, b) = R()\np = 0\nwhile True:\n\tif p % 2 != 0:\n\t\tif a >= p:\n\t\t\ta -= p\n\t\t\tp += 1\n\t\telse:\n\t\t\texit(print('Vladik'))\n\telif b >= p:\n\t\tb -= p\n\t\tp += 1\n\telse:\n\t\texit(print('Valera'))\n", "def main():\n\t(a, b) = list(map(int, input().split()))\n\tcur = 1\n\twhile True:\n\t\tif a < cur:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\t\ta -= cur\n\t\tif b < cur + 1:\n\t\t\tprint('Valera')\n\t\t\tbreak\n\t\tb -= cur + 1\n\t\tcur += 2\ntry:\n\twhile True:\n\t\tmain()\nexcept EOFError:\n\tpass\n", "(vla, val) = (int(x) for x in input().split())\ncan = 1\nwhile True:\n\tif vla < can:\n\t\tprint('Vladik')\n\t\tbreak\n\tvla -= can\n\tcan += 1\n\tif val < can:\n\t\tprint('Valera')\n\t\tbreak\n\tval -= can\n\tcan += 1\n", "(a, b) = map(int, input().split())\ni = 1\nj = 1\nc1 = c2 = 0\nwhile a - c1 >= 2 * i - 1:\n\tc1 += 2 * i - 1\n\ti += 1\nwhile b - c2 >= 2 * j:\n\tc2 += 2 * j\n\tj += 1\nif i > j:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "(a, b) = map(int, input().split())\nN = 100005\nrec = [0] * N\nrec[1] = 1\nrec[2] = 2\nfor i in range(3, N):\n\trec[i] = rec[i - 2] + i\nfor i in range(1, 100005):\n\tif i % 2 != 0:\n\t\tif a - rec[i] < 0:\n\t\t\tprint('Vladik')\n\t\t\texit()\n\telif b - rec[i] < 0:\n\t\tprint('Valera')\n\t\texit()\n", "(a, b) = map(int, input().split())\nna = int(pow(a, 0.5))\nnb = int((pow(1 + 4 * b, 0.5) - 1) / 2)\nif na > nb:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "T = [int(x) for x in input().split()]\ni = 1\nwhile 1:\n\tif i % 2 == 1:\n\t\tif T[0] < 0:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\t\tT[0] -= i\n\t\ti += 1\n\telse:\n\t\tif T[1] < 0:\n\t\t\tprint('Valera')\n\t\t\tbreak\n\t\tT[1] -= i\n\t\ti += 1\n", "import math\ninp = input()\ninp = inp.split(' ')\na = int(inp[0])\nb = int(inp[1])\nleft = 0\nright = 100000\nwhile left < right:\n\tmid = (left + right + 1) // 2\n\tif mid ** 2 <= a:\n\t\tleft = mid\n\telse:\n\t\tright = mid - 1\na = left\nleft = 0\nright = 100000\nwhile left < right:\n\tmid = (left + right + 1) // 2\n\tif mid * (mid + 1) // 2 - int(math.ceil(mid // 2)) ** 2 <= b:\n\t\tleft = mid\n\telse:\n\t\tright = mid - 1\nb = left // 2\nif a <= b:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "import sys\ninf = 1 << 30\n\ndef solve():\n\t(a, b) = map(int, input().split())\n\ttop = inf\n\tbtm = 0\n\twhile top - btm > 1:\n\t\tmid = (top + btm) // 2\n\t\tif mid ** 2 <= a:\n\t\t\tbtm = mid\n\t\telse:\n\t\t\ttop = mid\n\taout = top\n\ttop = inf\n\tbtm = 0\n\twhile top - btm > 1:\n\t\tmid = (top + btm) // 2\n\t\tif mid * (mid + 1) <= b:\n\t\t\tbtm = mid\n\t\telse:\n\t\t\ttop = mid\n\tbout = top\n\tif aout <= bout:\n\t\tprint('Vladik')\n\telse:\n\t\tprint('Valera')\nsolve()\n", "(a, b) = map(int, input().split())\ncur = 1\nwhile a >= 0 and b >= 0:\n\tif a < cur:\n\t\tprint('Vladik')\n\t\tbreak\n\ta -= cur\n\tcur += 1\n\tif b < cur:\n\t\tprint('Valera')\n\t\tbreak\n\tb -= cur\n\tcur += 1\n", "import sys\n\ndef solve():\n\t(a, b) = map(int, input().split())\n\tfor i in range(10 ** 9):\n\t\tif 2 * i + 1 > a:\n\t\t\tprint('Vladik')\n\t\t\treturn\n\t\telse:\n\t\t\ta -= 2 * i + 1\n\t\tif 2 * i + 2 > b:\n\t\t\tprint('Valera')\n\t\t\treturn\n\t\telse:\n\t\t\tb -= 2 * i + 2\n\ndef __starting_point():\n\tsolve()\n__starting_point()\n", "import itertools\nfrom math import sqrt\n\ndef main():\n\t(n, m) = [int(v) for v in input().split()]\n\ta1 = int(sqrt(n))\n\tif a1 * a1 + a1 > m:\n\t\tprint('Valera')\n\telse:\n\t\tprint('Vladik')\nmain()\n", "(m, n) = map(int, input().split())\ns = 1\nwhile 1:\n\tm -= s\n\ts += 1\n\tif m < 0:\n\t\tprint('Vladik')\n\t\tbreak\n\tn -= s\n\ts += 1\n\tif n < 0:\n\t\tprint('Valera')\n\t\ts += 1\n\t\tbreak\n", "(a, b) = map(int, input().split())\nx = 1\nwhile True:\n\ta -= x\n\tx += 1\n\tif a < 0:\n\t\tprint('Vladik')\n\t\tquit()\n\tb -= x\n\tx += 1\n\tif b < 0:\n\t\tprint('Valera')\n\t\tquit()\n", "(a, b) = list(map(int, input().split()))\nx = int(a ** 0.5)\ny = int((-1 + (1 + 4 * b) ** 0.5) / 2)\nif y >= x:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "(vl, va) = map(int, input().split())\nc = 1\nwhile vl >= 0 and va >= 0:\n\tvl -= c\n\tif vl < 0:\n\t\tprint('Vladik')\n\t\tbreak\n\tva -= c + 1\n\tif va < 0:\n\t\tprint('Valera')\n\t\tbreak\n\tc += 2\n", "(a, b) = map(int, input().split())\ni = 1\nwhile True:\n\tif a - i < 0:\n\t\tprint('Vladik')\n\t\texit()\n\telif b - i - 1 < 0:\n\t\tprint('Valera')\n\t\texit()\n\ta -= i\n\tb = b = b - i - 1\n\ti += 2\n", "(a, b) = map(int, input().split())\nx = 1\nwhile True:\n\tif x % 2 == 1:\n\t\tif a >= x:\n\t\t\ta -= x\n\t\telse:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\telif b >= x:\n\t\tb -= x\n\telse:\n\t\tprint('Valera')\n\t\tbreak\n\tx += 1\n", "(a, b) = [int(x) for x in input().split()]\nn = 0\ns = 0\nm = 0\ni = 1\nwhile s + i <= a:\n\ts += i\n\ti += 2\n\tn += 1\ns = 0\ni = 2\nwhile s + i <= b:\n\ts += i\n\ti += 2\n\tm += 1\nif n > m:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "(a, b) = map(int, input().split())\nfor i in range(1, int(1000000.0)):\n\tif i & 1:\n\t\tif a < i:\n\t\t\texit(print('Vladik'))\n\t\ta -= i\n\telse:\n\t\tif b < i:\n\t\t\texit(print('Valera'))\n\t\tb -= i\n", "candy = [int(i) for i in input().split()]\ng = 0\ni = 0\nkov = 0\nwhile g < 1:\n\ti += 1\n\tif candy[kov] >= i:\n\t\tcandy[kov] -= i\n\t\tkov = 1 - kov\n\telse:\n\t\tg += 1\n\t\tif kov == 0:\n\t\t\tprint('Vladik')\n\t\telse:\n\t\t\tprint('Valera')\n", "from sys import stdin, stdout\n(a, b) = map(int, stdin.readline().split())\ncnt = 1\nwhile True:\n\ta -= cnt\n\tcnt += 1\n\tb -= cnt\n\tcnt += 1\n\tif a < 0:\n\t\tstdout.write('Vladik')\n\t\tbreak\n\tif b < 0:\n\t\tstdout.write('Valera')\n\t\tbreak\n", "(a, b) = map(int, input().split())\ni = 1\nc = 1\nwhile i <= max(a, b):\n\tif c == 1:\n\t\tif a > 0:\n\t\t\ta = a - i\n\t\t\tc = 0\n\t\telse:\n\t\t\tbreak\n\telif b > 0:\n\t\tb = b - i\n\t\tc = 1\n\telse:\n\t\tbreak\n\ti += 1\nif c == 0:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "import math\n(a, b) = map(int, input().split())\nif int(math.sqrt(a)) <= int(math.sqrt(b + 0.25) - 0.5):\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "(a, b) = map(int, input().strip().split())\nx = 1\nwhile a >= 0 and b >= 0:\n\ta -= x\n\tx += 1\n\tb -= x\n\tx += 1\nif a < 0:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "inputs = [int(i) for i in input().split()]\n\ndef candies(vladik_a, valera_a):\n\tamount = 0\n\ttoggle = True\n\twhile True:\n\t\tamount += 1\n\t\tif vladik_a < 0:\n\t\t\treturn 'Vladik'\n\t\tif valera_a < 0:\n\t\t\treturn 'Valera'\n\t\tif toggle:\n\t\t\tvladik_a -= amount\n\t\t\ttoggle = False\n\t\telse:\n\t\t\tvalera_a -= amount\n\t\t\ttoggle = True\nprint(candies(inputs[0], inputs[1]))\n", "(a, b) = map(int, input().split())\ns = int(a ** (1 / 2))\nt = int((-1 + (1 + 4 * b) ** (1 / 2)) / 2)\nif s > t:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "ls = list(map(int, input().split()))\ni = 1\nflag = 0\nwhile True:\n\tif i > ls[flag]:\n\t\tbreak\n\tls[flag] -= i\n\ti += 1\n\tflag = 1 - flag\nif flag == 0:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "from math import *\n(a, b) = map(int, input().split())\nn = int(sqrt(a))\nm = n * (n + 1)\nif b >= m:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "def solve(a, b):\n\tv = True\n\ti = 1\n\twhile True:\n\t\tif v:\n\t\t\tif a >= i:\n\t\t\t\ta -= i\n\t\t\telse:\n\t\t\t\treturn 'Vladik'\n\t\telif b >= i:\n\t\t\tb -= i\n\t\telse:\n\t\t\treturn 'Valera'\n\t\ti += 1\n\t\tv ^= 1\n\ndef main():\n\t(a, b) = list(map(int, input().split()))\n\tprint(solve(a, b))\nmain()\n", "(a, b) = map(int, input().split())\nfor i in range(1, int(1000000000.0 + 1)):\n\tif i % 2 == 0:\n\t\tif i > b:\n\t\t\tprint('Valera')\n\t\t\tquit()\n\t\telse:\n\t\t\tb -= i\n\telif i > a:\n\t\tprint('Vladik')\n\t\tquit()\n\telse:\n\t\ta -= i\n", "ab = list(map(int, input().split()))\nstep = 1\nwhile 1:\n\tif step % 2 == 1:\n\t\tif ab[0] - step < 0:\n\t\t\tanswer = 'Vladik'\n\t\t\tbreak\n\t\tab[0] -= step\n\telse:\n\t\tif ab[1] - step < 0:\n\t\t\tanswer = 'Valera'\n\t\t\tbreak\n\t\tab[1] -= step\n\tstep += 1\nprint(answer)\n", "(a, b) = map(int, input().strip().split())\nsub = 1\nwhile 1:\n\tif a >= sub:\n\t\ta -= sub\n\telse:\n\t\tprint('Vladik')\n\t\tbreak\n\tif b >= sub + 1:\n\t\tb -= sub + 1\n\telse:\n\t\tprint('Valera')\n\t\tbreak\n\tsub += 2\n", "(a, b) = map(int, input().split())\nc = a + b\na1 = 0\nb1 = 0\nfor i in range(1, c, 2):\n\tif a >= i:\n\t\ta1 += 1\n\t\ta -= i\n\telse:\n\t\tbreak\nfor i in range(2, c, 2):\n\tif b >= i:\n\t\tb1 += 1\n\t\tb -= i\n\telse:\n\t\tbreak\nif a1 <= b1:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "(a, b) = map(int, input().split())\ni = 1\nwhile True:\n\ta = a - i\n\tif a < 0:\n\t\tans = 'Vladik'\n\t\tbreak\n\ti += 1\n\tb = b - i\n\tif b < 0:\n\t\tans = 'Valera'\n\t\tbreak\n\ti += 1\nprint(ans)\n", "ans = ['Vladik', 'Valera']\ns = input()\ns = s.split()\ns[0] = int(s[0])\ns[1] = int(s[1])\np = 1\nwhile 1:\n\ts[(p + 1) % 2] -= p\n\tif s[(p + 1) % 2] < 0:\n\t\tprint(ans[(p + 1) % 2])\n\t\tbreak\n\tp += 1\n", "who = [int(x) for x in input().split()]\nturn = 0\no = 1\nwhile o <= who[turn]:\n\twho[turn] = who[turn] - o\n\to = o + 1\n\tturn = turn ^ 1\nif turn == 1:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "import sys\n(a, b) = map(int, input().split())\ncnt = 1\nwhile a >= 0 and b >= 0:\n\tif cnt & 1:\n\t\ta -= cnt\n\telse:\n\t\tb -= cnt\n\tcnt += 1\n\tif a < 0:\n\t\tprint('Vladik')\n\telif b < 0:\n\t\tprint('Valera')\n", "(a, b) = map(int, input().split())\nflag = True\nfor step in range(1, 200000):\n\tif flag:\n\t\ta -= step\n\telse:\n\t\tb -= step\n\tif a < 0 or b < 0:\n\t\tbreak\n\tflag = not flag\nif flag:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "s = input()\nl = s.split()\nv1 = int(l[0])\nv2 = int(l[1])\ni = 1\nwhile v1 >= 0 and v2 >= 0:\n\tif i % 2 == 1:\n\t\tv1 -= i\n\tif i % 2 == 0:\n\t\tv2 -= i\n\ti += 1\nif v1 < 0:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "import math\n(m, n) = map(int, input().split())\nm = int(math.sqrt(m * 4 + 1)) // 2\nn = (int(math.sqrt(n * 4 + 1)) - 1) // 2\nif m > n:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "import math\n(a, b) = input().split()\n(a, b) = (int(a), int(b))\np = 2 * math.floor(math.sqrt(a)) + 1\nq = math.floor(math.sqrt(1 + 4 * b)) + 1\nif p < q:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "(a, b) = map(int, input().split())\nj = 1\ni = 1\nwhile True:\n\tif i == 1:\n\t\tif a >= j:\n\t\t\ta -= j\n\t\telse:\n\t\t\tbreak\n\telif b >= j:\n\t\tb -= j\n\telse:\n\t\tbreak\n\ti *= -1\n\tj += 1\nprint('Vladik' if i == 1 else 'Valera')\n", "(a, b) = map(int, input().split())\nk = 1\nm = 1\nwhile 1 == 1:\n\tif m == 1:\n\t\tif a - k >= 0:\n\t\t\ta = a - k\n\t\t\tk = k + 1\n\t\t\tm = 2\n\t\telse:\n\t\t\tprint('Vladik')\n\t\t\texit(0)\n\telif b - k >= 0:\n\t\tb = b - k\n\t\tk = k + 1\n\t\tm = 1\n\telse:\n\t\tprint('Valera')\n\t\texit(0)\n", "def main():\n\tfrom math import floor, sqrt\n\t[vladik, valera] = [int(_) for _ in input().split()]\n\ttimes_vladik = floor(sqrt(vladik))\n\ttimes_valera = next((i for i in range(floor(sqrt(valera)) + 2) if i * (i + 1) > valera))\n\ttimes_valera -= 1\n\tprint('Valera' if times_vladik > times_valera else 'Vladik')\nmain()\n", "import math\n\ndef solve():\n\ts = input()\n\ttokens = s.split()\n\ta = int(tokens[0])\n\tb = int(tokens[1])\n\tn = int(math.sqrt(a))\n\tapprox = n * (n + 1)\n\tif approx == b:\n\t\treturn 'Equal'\n\telif approx > b:\n\t\treturn 'Valera'\n\treturn 'Vladik'\nresult = solve()\nif result == 'Valera':\n\tprint(result)\nelse:\n\tprint('Vladik')\n", "import math\n(x, y) = map(int, input().split())\nm = round(math.sqrt(x) - math.sqrt(x) % 1)\nn = y - round(math.sqrt(y) - math.sqrt(y) % 1)\na = round(math.sqrt(n) - math.sqrt(n) % 1)\nn = a\nprint('Vladik' if m == n or n > m else 'Valera')\n", "def winner(a, b):\n\ta_c = 1\n\tb_c = 2\n\tfor i in range(a + b):\n\t\ta -= a_c\n\t\tb -= b_c\n\t\tif a < 0 or b < 0:\n\t\t\tbreak\n\t\ta_c += 2\n\t\tb_c += 2\n\tif a < 0 and b >= 0:\n\t\treturn 'Vladik'\n\tif a >= 0 and b < 0:\n\t\treturn 'Valera'\n\telse:\n\t\treturn 'Vladik'\n(a, b) = map(int, input().split())\nprint(winner(a, b))\n", "import sys\nimport math\nget_string = lambda : sys.stdin.readline().strip()\nget_int_list = lambda : list(map(int, sys.stdin.readline().strip().split()))\nget_intList_from_str = lambda : list(map(int, list(sys.stdin.readline().strip())))\nget_charList_from_str = lambda : list(sys.stdin.readline().strip())\nget_char_list = lambda : sys.stdin.readline().strip().split()\nget_int = lambda : int(sys.stdin.readline())\npt = lambda x: sys.stdout.write(str(x))\n(a, b) = get_int_list()\nn = int(math.sqrt(a))\nm = n * (n + 1)\nif m > b:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "a = list(map(int, input().split(' ')))\ni = 0\nx = 1\nwhile True:\n\tif a[i] < x:\n\t\tprint(['Vladik', 'Valera'][i])\n\t\tbreak\n\ta[i] -= x\n\tif i == 1:\n\t\ti = 0\n\telse:\n\t\ti = 1\n\tx += 1\n", "(x, y) = map(int, input().split())\nans = 0\ni = 1\nwhile x >= 0 and y >= 0:\n\tx -= i\n\ti += 1\n\tif x < 0:\n\t\tprint('Vladik')\n\t\tbreak\n\ty -= i\n\ti += 1\n\tif y < 0:\n\t\tprint('Valera')\n\t\tbreak\n", "[a, b] = list(map(int, input().split()))\nx = 1\nwhile True:\n\tif x % 2 == 1:\n\t\tif a < x:\n\t\t\tprint('Vladik')\n\t\t\texit(0)\n\t\ta -= x\n\telse:\n\t\tif b < x:\n\t\t\tprint('Valera')\n\t\t\texit(0)\n\t\tb -= x\n\tx += 1\n", "from sys import stdin, stdout\nimport math\nfrom collections import Counter, deque\nL = lambda : list(map(int, stdin.readline().strip().split()))\nM = lambda : map(int, stdin.readline().strip().split())\nI = lambda : int(stdin.readline().strip())\nS = lambda : stdin.readline().strip()\nC = lambda : stdin.readline().strip().split()\nmod = 1000000007\n\ndef pr(a):\n\treturn ''.join(list(map(str, a)))\n\ndef solve():\n\t(n, m) = M()\n\ti = 1\n\twhile 1:\n\t\tn -= i\n\t\tif n < 0:\n\t\t\tprint('Vladik')\n\t\t\treturn\n\t\ti += 1\n\t\tm -= i\n\t\tif m < 0:\n\t\t\tprint('Valera')\n\t\t\treturn\n\t\ti += 1\nfor _ in range(1):\n\tsolve()\n", "x = 1\nstep = 1\n(a, b) = map(int, input().split())\nwhile True:\n\tif step == 1:\n\t\tif x > a:\n\t\t\tbreak\n\t\ta -= x\n\t\tx += 1\n\t\tstep = 0\n\telse:\n\t\tif x > b:\n\t\t\tbreak\n\t\tb -= x\n\t\tx += 1\n\t\tstep = 1\nif step == 1:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "import math\n(a, b) = (int(i) for i in input().split(' '))\nvladik = math.floor(math.sqrt(a))\nvalera = 0\nl = 1\nh = math.floor(math.sqrt(b) + 1)\nwhile l <= h:\n\tmid = l + h >> 1\n\tt = mid * mid + mid\n\tif t <= b:\n\t\tvalera = max(valera, mid)\n\t\tl = mid + 1\n\telse:\n\t\th = mid - 1\nif vladik > valera:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "(vladik, valera) = [int(x) for x in input().split()]\n(odd, even) = (1, 2)\nwhile True:\n\tvladik -= odd\n\tif vladik < 0:\n\t\tprint('Vladik')\n\t\tbreak\n\tvalera -= even\n\tif valera < 0:\n\t\tprint('Valera')\n\t\tbreak\n\todd += 2\n\teven += 2\n", "(a, b) = map(int, input().split())\ni = 1\nt = True\nwhile True:\n\tif t:\n\t\ta -= i\n\t\tif a < 0:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\telse:\n\t\tb -= i\n\t\tif b < 0:\n\t\t\tprint('Valera')\n\t\t\tbreak\n\tt = not t\n\ti += 1\n", "(a, b) = map(int, input().split())\np = int(a ** 0.5)\nq = int((-1 + (1 + 4 * b) ** 0.5) / 2)\nprint('Valera' if p > q else ' Vladik')\n", "def main():\n\t(a, b) = map(int, input().split())\n\tdif = 1\n\twhile True:\n\t\tif dif % 2 == 1:\n\t\t\tif a >= dif:\n\t\t\t\ta -= dif\n\t\t\telse:\n\t\t\t\tprint('Vladik')\n\t\t\t\treturn\n\t\telif b >= dif:\n\t\t\tb -= dif\n\t\telse:\n\t\t\tprint('Valera')\n\t\t\treturn\n\t\tdif += 1\nmain()\n", "import sys\n(a, b) = map(int, sys.stdin.readline().split())\npersions = ['Vladik', 'Valera']\nturn = True\nnum = 1\nwhile True:\n\tif turn:\n\t\tif a < num:\n\t\t\tbreak\n\t\ta -= num\n\t\tturn = False\n\telse:\n\t\tif b < num:\n\t\t\tbreak\n\t\tb -= num\n\t\tturn = True\n\tnum += 1\nif turn:\n\tprint(persions[0])\nelse:\n\tprint(persions[1])\n", "import sys\nfrom sys import stdin, stdout\nimport bisect\nfrom bisect import bisect_left as bl\nfrom bisect import bisect_right as br\nimport itertools\nimport collections\nimport math\nimport heapq\nimport re\n\ndef modinv(n, p):\n\treturn pow(n, p - 2, p)\n\ndef cin():\n\treturn map(int, sin().split())\n\ndef ain():\n\treturn list(map(int, sin().split()))\n\ndef sin():\n\treturn input()\n\ndef inin():\n\treturn int(input())\n\ndef Divisors(n):\n\tl = []\n\tfor i in range(1, int(math.sqrt(n) + 1)):\n\t\tif n % i == 0:\n\t\t\tif n // i == i:\n\t\t\t\tl.append(i)\n\t\t\telse:\n\t\t\t\tl.append(i)\n\t\t\t\tl.append(n // i)\n\treturn l\n\ndef most_frequent(list):\n\treturn max(set(list), key=list.count)\n\ndef GCD(x, y):\n\twhile y:\n\t\t(x, y) = (y, x % y)\n\treturn x\n\ndef ncr(n, r, p):\n\tt = fact[n] * (ifact[r] * ifact[n - r] % p) % p\n\treturn t\n\ndef Convert(string):\n\tli = list(string.split(''))\n\treturn li\n\ndef SieveOfEratosthenes(n):\n\tglobal prime\n\tprime = [True for i in range(n + 1)]\n\tp = 2\n\twhile p * p <= n:\n\t\tif prime[p] == True:\n\t\t\tfor i in range(p * p, n + 1, p):\n\t\t\t\tprime[i] = False\n\t\tp += 1\n\tf = []\n\tfor p in range(2, n):\n\t\tif prime[p]:\n\t\t\tf.append(p)\n\treturn f\nprime = []\nq = []\n\ndef dfs(n, d, v, c):\n\tglobal q\n\tv[n] = 1\n\tx = d[n]\n\tq.append(n)\n\tj = c\n\tfor i in x:\n\t\tif i not in v:\n\t\t\tf = dfs(i, d, v, c + 1)\n\t\t\tj = max(j, f)\n\treturn j\n\ndef main():\n\tq = ain()\n\ta = q[0]\n\tb = q[1]\n\ttemp1 = a\n\ttemp2 = b\n\tfor i in range(max(a, b) + 1):\n\t\ta = a - (i + 1) * (i + 1)\n\t\tif a < 0:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\t\telse:\n\t\t\tb = b - ((i + 1) * (1 + i) + i + 1)\n\t\t\tif b < 0:\n\t\t\t\tprint('Valera')\n\t\t\t\tbreak\n\t\ta = temp1\n\t\tb = temp2\npy2 = round(0.5)\nif py2:\n\tfrom future_builtins import ascii, filter, hex, map, oct, zip\n\trange = xrange\nimport os, sys\nfrom io import IOBase, BytesIO\nBUFSIZE = 8192\n\nclass FastIO(BytesIO):\n\tnewlines = 0\n\n\tdef __init__(self, file):\n\t\tself._file = file\n\t\tself._fd = file.fileno()\n\t\tself.writable = 'x' in file.mode or 'w' in file.mode\n\t\tself.write = super(FastIO, self).write if self.writable else None\n\n\tdef _fill(self):\n\t\ts = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))\n\t\tself.seek((self.tell(), self.seek(0, 2), super(FastIO, self).write(s))[0])\n\t\treturn s\n\n\tdef read(self):\n\t\twhile self._fill():\n\t\t\tpass\n\t\treturn super(FastIO, self).read()\n\n\tdef readline(self):\n\t\twhile self.newlines == 0:\n\t\t\ts = self._fill()\n\t\t\tself.newlines = s.count(b'\\n') + (not s)\n\t\tself.newlines -= 1\n\t\treturn super(FastIO, self).readline()\n\n\tdef flush(self):\n\t\tif self.writable:\n\t\t\tos.write(self._fd, self.getvalue())\n\t\t\t(self.truncate(0), self.seek(0))\n\nclass IOWrapper(IOBase):\n\n\tdef __init__(self, file):\n\t\tself.buffer = FastIO(file)\n\t\tself.flush = self.buffer.flush\n\t\tself.writable = self.buffer.writable\n\t\tif py2:\n\t\t\tself.write = self.buffer.write\n\t\t\tself.read = self.buffer.read\n\t\t\tself.readline = self.buffer.readline\n\t\telse:\n\t\t\tself.write = lambda s: self.buffer.write(s.encode('ascii'))\n\t\t\tself.read = lambda : self.buffer.read().decode('ascii')\n\t\t\tself.readline = lambda : self.buffer.readline().decode('ascii')\n(sys.stdin, sys.stdout) = (IOWrapper(sys.stdin), IOWrapper(sys.stdout))\ninput = lambda : sys.stdin.readline().rstrip('\\r\\n')\nmain()\n", "import math\ntypes = list(map(int, input().strip().split(' ')))\ni = 0\nwhile True:\n\tif i % 2 == 1:\n\t\tif types[0] < i:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\t\ttypes[0] -= i\n\telse:\n\t\tif types[1] < i:\n\t\t\tprint('Valera')\n\t\t\tbreak\n\t\ttypes[1] -= i\n\ti += 1\n", "(a, b) = map(int, input().split())\ng = 1\nt = 0\nwhile True:\n\tt += 1\n\tif t % 2 != 0:\n\t\tif a < g:\n\t\t\tbreak\n\t\telse:\n\t\t\ta -= g\n\telif b < g:\n\t\tbreak\n\telse:\n\t\tb -= g\n\tg += 1\nif t % 2 == 0:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "(a, b) = list(map(int, input().split()))\ni = 1\nwhile i ** 2 <= a:\n\ti = i + 1\nj = 1\nwhile j * (j + 1) <= b:\n\tj += 1\nif i <= j:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "(a, b) = map(int, input().split())\nc = 1\nwhile a >= 0 and b >= 0:\n\ta -= c\n\tc += 1\n\tb -= c\n\tc += 1\nif a < 0:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "(a, b) = map(int, input().split())\nk = 1\np = 1\nq = 2\nwhile a >= 0 and b >= 0:\n\tif k == 1:\n\t\ta -= p\n\t\tk = 0\n\t\tp += 2\n\telse:\n\t\tb -= q\n\t\tk = 1\n\t\tq += 2\n\tif a < 0:\n\t\tprint('Vladik')\n\t\texit()\n\tif b < 0:\n\t\tprint('Valera')\n\t\texit()\n", "(a, b) = map(int, input().split())\nmx = max(a, b)\nfor i in range(1, mx + 2):\n\tif i & 1:\n\t\tif i > a:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\t\ta -= i\n\telse:\n\t\tif i > b:\n\t\t\tprint('Valera')\n\t\t\tbreak\n\t\tb -= i\n", "(n, m) = map(int, input().split())\nt = 0\nwhile n >= 0 and m >= 0:\n\tt += 1\n\tif t % 2 == 0:\n\t\tm = m - t\n\telse:\n\t\tn = n - t\nprint('Valera' if t % 2 == 0 else 'Vladik')\n", "a = input().split(' ')\nx = int(a[0])\ny = int(a[1])\npasso = 1\nwhile 1:\n\tx -= passo\n\tif x < 0:\n\t\tprint('Vladik')\n\t\tbreak\n\tpasso += 1\n\ty -= passo\n\tif y < 0:\n\t\tprint('Valera')\n\t\tbreak\n\tpasso += 1\n", "line1 = list(map(lambda x: int(x), input().split()))\namt = 1\nwho = 0\nwhile line1[0] >= 0 and line1[1] >= 0:\n\tline1[who] -= amt\n\twho = not who\n\tamt += 1\nprint('Vladik' if line1[0] < 0 else 'Valera')\n", "(n, m) = map(int, input().split())\ni = 1\nwhile 1:\n\tif i & 1 == 1:\n\t\tif n - i < 0:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\t\telse:\n\t\t\tn -= i\n\telif m - i < 0:\n\t\tprint('Valera')\n\t\tbreak\n\telse:\n\t\tm -= i\n\ti += 1\n", "(a, b) = [int(x) for x in input().split()]\nnum = 0\ngive = 1\nwhile True:\n\tif num % 2 == 0:\n\t\tif a - give >= 0:\n\t\t\ta -= give\n\t\t\tgive += 1\n\t\t\tnum += 1\n\t\telse:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\telif b - give >= 0:\n\t\tb -= give\n\t\tgive += 1\n\t\tnum += 1\n\telse:\n\t\tprint('Valera')\n\t\tbreak\n", "(a, b) = (int(i) for i in input().split(' '))\ni = 0\nwhile a >= 0 and b >= 0:\n\ti = i + 1\n\tif i % 2 == 0:\n\t\tb = b - i\n\telse:\n\t\ta = a - i\nif a < 0:\n\tprint('Vladik')\nelif b < 0:\n\tprint('Valera')\n", "(a, b) = map(int, input().split())\nfor i in range(1, 9 ** 9):\n\ta -= i % 2 * i\n\tb -= (i + 1) % 2 * i\n\tif min(a, b) < 0:\n\t\tprint(['Valera', 'Vladik'][i % 2])\n\t\tbreak\n", "(a, b) = map(int, input().split())\ni = 1\nwhile 1:\n\tif a < i:\n\t\tprint('Vladik')\n\t\tbreak\n\ta -= i\n\ti += 1\n\tif b < i:\n\t\tprint('Valera')\n\t\tbreak\n\tb -= i\n\ti += 1\n", "(a, b) = map(int, input().split())\nc = 1\nwhile 1:\n\tif c % 2 and a < c:\n\t\tbreak\n\telif c % 2 == 0 and b < c:\n\t\tbreak\n\tif c % 2:\n\t\ta -= c\n\telse:\n\t\tb -= c\n\tc += 1\nif c % 2:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "from math import sqrt, floor\n(a, b) = map(int, input().split())\nx = sqrt(a)\ny = (-1 + sqrt(1 + 4 * b)) / 2\nx = floor(x)\ny = floor(y)\nif x <= y:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "(a, b) = map(int, input().split())\nn1 = int(a ** 0.5)\nn2 = (-1 + (1 + 4 * b) ** 0.5) // 2\nprint('Valera' if n1 > n2 else 'Vladik')\n", "ab = input()\na = int(ab.split(' ')[0])\nb = int(ab.split(' ')[1])\na1 = int(a ** (1 / 2))\nb1 = int(((4 * b + 1) ** (1 / 2) - 1) / 2)\nif a1 - b1 >= 1:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "import sys\nread = lambda : sys.stdin.readline().rstrip()\nreadi = lambda : int(sys.stdin.readline())\nwriteln = lambda x: sys.stdout.write(str(x) + '\\n')\nwrite = lambda x: sys.stdout.write(x)\n(a, b) = map(int, read().split())\ntoggle = True\nc = 1\nwhile True:\n\tif toggle:\n\t\ta -= c\n\telse:\n\t\tb -= c\n\tif a < 0:\n\t\twriteln('Vladik')\n\t\tbreak\n\tif b < 0:\n\t\twriteln('Valera')\n\t\tbreak\n\tc += 1\n\ttoggle = not toggle\n", "import math\nvs = ['Vladik', 'Valera']\n(a, b) = map(int, input().split(' '))\nan = math.floor(math.sqrt(a))\nbn = 0\nwhile True:\n\tbn += 1\n\tif b < bn * (bn + 1):\n\t\tbn -= 1\n\t\tbreak\nprint(vs[an > bn])\n", "X = list(map(int, input().split()))\nTurn = True\nN = 1\nwhile True:\n\tif Turn:\n\t\tif X[0] - N < 0:\n\t\t\tprint('Vladik')\n\t\t\texit()\n\t\tX[0] -= N\n\t\tN += 1\n\t\tTurn = False\n\telse:\n\t\tif X[1] - N < 0:\n\t\t\tprint('Valera')\n\t\t\texit()\n\t\tX[1] -= N\n\t\tN += 1\n\t\tTurn = True\n", "import math\n(a, b) = map(int, input().split())\nvladik = int(math.sqrt(a))\nhigh = int(math.sqrt(b))\nwhile True:\n\tif pow(high, 2) + high <= b:\n\t\tbreak\n\thigh -= 1\nvalera = high\nif vladik > valera:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "l = [int(e) for e in input().split()]\na = l[0]\nb = l[1]\ni = 0\nwhile 1:\n\tif i % 2 == 0:\n\t\tif b < 0:\n\t\t\tprint('Valera')\n\t\t\tbreak\n\t\tb -= i\n\telse:\n\t\tif a < 0:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\t\ta -= i\n\ti += 1\n", "import sys\nimport math\nget_string = lambda : sys.stdin.readline().strip()\nget_int_list = lambda : list(map(int, sys.stdin.readline().strip().split()))\nget_intList_from_str = lambda : list(map(int, list(sys.stdin.readline().strip())))\nget_charList_from_str = lambda : list(sys.stdin.readline().strip())\nget_char_list = lambda : sys.stdin.readline().strip().split()\nget_int = lambda : int(sys.stdin.readline())\npt = lambda x: sys.stdout.write(str(x))\n(a, b) = get_int_list()\nturn = 0\nstep = 1\nwhile a >= step and b >= step:\n\tif turn == 0:\n\t\ta -= step\n\t\tstep += 1\n\t\tturn = 1\n\telse:\n\t\tb -= step\n\t\tstep += 1\n\t\tturn = 0\nif turn == 0:\n\tif a < step:\n\t\tprint('Vladik')\n\telse:\n\t\tprint('Valera')\nelif b < step:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "(a, b) = map(int, input().split(' '))\nanswer = ''\nfor i in range(1, max(a, b) + 2):\n\tif i % 2 == 1:\n\t\ta -= i\n\t\tif a < 0:\n\t\t\tprint('Vladik')\n\t\t\texit()\n\telse:\n\t\tb -= i\n\t\tif b < 0:\n\t\t\tprint('Valera')\n\t\t\texit()\n", "(a, b) = map(int, input().split())\nturn = 0\ntake = 1\nwhile True:\n\tif turn == 0:\n\t\tif a >= take:\n\t\t\ta -= take\n\t\t\tturn ^= 1\n\t\telse:\n\t\t\tbreak\n\telif b >= take:\n\t\tb -= take\n\t\tturn ^= 1\n\telse:\n\t\tbreak\n\ttake += 1\nprint(['Valera', 'Vladik'][turn ^ 1])\n", "def switch(A):\n\tif A:\n\t\treturn False\n\treturn True\n[lad, ale] = input().split()\n[lad, ale] = [int(lad), int(ale)]\ncheck = True\nturn = False\ni = 1\nwhile check:\n\tif turn:\n\t\tale = ale - i\n\t\tif ale < 0:\n\t\t\tcheck = False\n\telse:\n\t\tlad = lad - i\n\t\tif lad < 0:\n\t\t\tcheck = False\n\tturn = switch(turn)\n\ti = i + 1\nif not turn:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "vect1 = input()\nvect1 = vect1.split(' ')\ntam = len(vect1)\ncont1 = 1\ncontador1 = 2\nx = 0\naux11 = int(vect1[0])\naux22 = int(vect1[1])\nwhile True:\n\taux11 = aux11 - cont1\n\taux22 = aux22 - contador1\n\tif aux11 < 0:\n\t\tprint('Vladik')\n\t\tbreak\n\tif aux22 < 0:\n\t\tprint('Valera')\n\t\tbreak\n\tcont1 = cont1 + 2\n\tcontador1 = contador1 + 2\n", "(n, m) = tuple(map(int, input().split()))\ni = 1\nwhile True:\n\tif i % 2 != 0:\n\t\tn -= i\n\telse:\n\t\tm -= i\n\tif n < 0:\n\t\tprint('Vladik')\n\t\texit()\n\tif m < 0:\n\t\tprint('Valera')\n\t\texit()\n\ti += 1\n", "from math import sqrt\n\ndef Cor(a, b):\n\tn = 1\n\twhile True:\n\t\tif a >= n:\n\t\t\ta -= n\n\t\t\tn += 1\n\t\telse:\n\t\t\treturn 2\n\t\tif b >= n:\n\t\t\tb -= n\n\t\t\tn += 1\n\t\telse:\n\t\t\treturn 1\n\ndef UnCor(a, b):\n\tna = int(sqrt(a))\n\tnb = int((-1 + sqrt(1 + 4 * b)) / 2)\n\tif na <= nb:\n\t\treturn 'Vladik'\n\telse:\n\t\treturn 'Valera'\no = [int(u) for u in input().split()]\nprint(UnCor(o[0], o[1]))\n", "(n, k) = map(int, input().split())\nt = 1\nwhile True:\n\tif t % 2 == 1:\n\t\tn -= t\n\tif t % 2 == 0:\n\t\tk -= t\n\tif n < 0:\n\t\tprint('Vladik')\n\t\tbreak\n\tif k < 0:\n\t\tprint('Valera')\n\t\tbreak\n\tt += 1\n", "(a, b) = list(map(int, input().split()))\nk = 1\np = True\nwhile a >= 0 and b >= 0:\n\tif p:\n\t\ta -= k\n\t\tp = False\n\t\tif a < 0:\n\t\t\tbreak\n\telse:\n\t\tb -= k\n\t\tp = True\n\t\tif b < 0:\n\t\t\tbreak\n\tk += 1\nif a < 0:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "(a, b) = map(int, input().split())\ni = 1\nc = 1\nd = 2\nwhile True:\n\tif i % 2 != 0:\n\t\ta -= c\n\t\tc += 2\n\telif i % 2 == 0:\n\t\tb -= d\n\t\td += 2\n\tif a < 0:\n\t\tprint('Vladik')\n\t\tbreak\n\tif b < 0:\n\t\tprint('Valera')\n\t\tbreak\n\ti += 1\n", "(a, b) = map(int, input().split())\ncurr = 1\nwhile True:\n\tif curr % 2 == 1:\n\t\ta -= curr\n\tif curr % 2 == 0:\n\t\tb -= curr\n\tcurr += 1\n\tif a < 0:\n\t\tprint('Vladik')\n\t\texit()\n\tif b < 0:\n\t\tprint('Valera')\n\t\texit()\n", "def bin_search(calc, n):\n\thi = n + 1\n\tlo = ans = 0\n\twhile hi - lo > 1:\n\t\tmid = (hi + lo) // 2\n\t\tif calc(mid) <= n:\n\t\t\tlo = ans = mid\n\t\telse:\n\t\t\thi = mid\n\treturn ans\n[vl, va] = [int(x) for x in input().split()]\n[vl, va] = [bin_search(lambda x: x * x, vl), bin_search(lambda x: x * (x + 1), va)]\nprint('Valera') if vl > va else print('Vladik')\n", "def solve(vladik, valera):\n\ti = 1\n\twhile True:\n\t\tif vladik - i < 0:\n\t\t\treturn 'Vladik'\n\t\telse:\n\t\t\tvladik -= i\n\t\ti += 1\n\t\tif valera - i < 0:\n\t\t\treturn 'Valera'\n\t\telse:\n\t\t\tvalera -= i\n\t\ti += 1\n(n, m) = map(int, input().split())\nprint(solve(n, m))\n", "(a, b) = [int(x) for x in input().split()]\nn = 1\nflag = 'Vladik'\nwhile a - n >= 0 and flag == 'Vladik' or (b - n >= 0 and flag == 'Valera'):\n\tif flag == 'Valera':\n\t\tb -= n\n\t\tflag = 'Vladik'\n\telse:\n\t\ta -= n\n\t\tflag = 'Valera'\n\tn += 1\nprint(flag)\n", "(a, b) = map(int, input().split())\nprint('VVlaaldeirka'[((4 * b + 1) ** 0.5 - 1) // 2 < a ** 0.5 // 1::2])\n", "(a, b) = input().strip().split(' ')\n(a, b) = [int(a), int(b)]\nn = b // 2\nm = 1\nM = 10 ** 14\nmid = (m + M) // 2\ns = mid * (mid + 1) // 2\ns1 = s + mid + 1\nwhile not (s <= n and s1 > n):\n\tif n == 0:\n\t\tmid = 0\n\t\tbreak\n\tmid = (m + M) // 2\n\ts = mid * (mid + 1) // 2\n\ts1 = s + mid + 1\n\tif s < n and s1 < n:\n\t\tm = mid\n\telif s > n:\n\t\tM = mid\n\telse:\n\t\tbreak\nm = int(a ** 0.5)\nif m > mid:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "(a, b) = map(int, input().split())\ns = 0\ncnt = 1\nwhile True:\n\tif s % 2 == 0:\n\t\tif a < cnt:\n\t\t\tbreak\n\t\ta -= cnt\n\telse:\n\t\tif b < cnt:\n\t\t\tbreak\n\t\tb -= cnt\n\tcnt += 1\n\ts = 1 - s\nprint(['Vladik', 'Valera'][s])\n", "(a, b) = map(int, input().split())\nt = 1\nc = 1\nwhile c == 1:\n\ta = a - t\n\tif a < 0:\n\t\tprint('Vladik')\n\t\tbreak\n\tt = t + 1\n\tb = b - t\n\tif b < 0:\n\t\tprint('Valera')\n\t\tbreak\n\tt = t + 1\n", "a = input().split()\ns = int(a[0])\nd = int(a[1])\ng = 0\nfor i in range(int(1e+50)):\n\tg += 1\n\tif i % 2 == 0:\n\t\ts -= g\n\t\tif s < 0:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\telse:\n\t\td -= g\n\t\tif d < 0:\n\t\t\tprint('Valera')\n\t\t\tbreak\n", "import math, itertools, fractions, heapq, collections, bisect, sys, queue, copy\nsys.setrecursionlimit(10 ** 7)\ninf = 10 ** 20\nmod = 10 ** 9 + 7\ndd = [(-1, 0), (0, 1), (1, 0), (0, -1)]\nddn = [(-1, 0), (-1, 1), (0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-1, -1)]\n\ndef LI():\n\treturn [int(x) for x in sys.stdin.readline().split()]\n\ndef I():\n\treturn int(sys.stdin.readline())\n\ndef F():\n\treturn float(sys.stdin.readline())\n\ndef LS():\n\treturn sys.stdin.readline().split()\n\ndef S():\n\treturn input()\n\ndef main():\n\t(a, b) = LI()\n\tst = 1\n\twhile True:\n\t\tif st % 2 == 1:\n\t\t\ta -= st\n\t\t\tif a < 0:\n\t\t\t\treturn 'Vladik'\n\t\telse:\n\t\t\tb -= st\n\t\t\tif b < 0:\n\t\t\t\treturn 'Valera'\n\t\tst += 1\nprint(main())\n", "a = input().split(' ')\nc1 = int(a[0])\nc2 = int(a[1])\nx = int(c1 ** (1.0 / 2))\ny = x * (x + 1)\nif y > c2:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "(vladik, valera) = map(int, input().split())\nfor x in range(1, 10 ** 5):\n\tif vladik < 0 or valera < 0:\n\t\tbreak\n\telif x % 2 == 1:\n\t\tvladik -= x\n\telse:\n\t\tvalera -= x\nif vladik < valera:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "(vl, va) = map(int, input().split())\nc = 1\nwhile va >= 0 and vl > 0:\n\tvl -= c\n\tc += 1\n\tif vl >= 0:\n\t\tva -= c\n\tc += 1\nif va >= vl:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "def main():\n\tv = list(map(int, input().split()))\n\tx = 1\n\twhile True:\n\t\ti = 1 - x % 2\n\t\tv[i] -= x\n\t\tif v[i] < 0:\n\t\t\tbreak\n\t\tx += 1\n\tprint('Vladik' if x % 2 == 1 else 'Valera')\nmain()\n", "(a, b) = map(int, input().split())\nres1 = int(a ** 0.5)\nres2 = int((b + 0.25) ** 0.5 - 0.5)\nif res1 == res2:\n\tprint('Vladik')\nelif res1 > res2:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "inp = input('')\ninp = inp.split(' ')\na = int(inp[0])\nb = int(inp[1])\ni = 1\nwhile 1:\n\tif a >= i:\n\t\ta = a - i\n\telse:\n\t\tprint('Vladik\\n')\n\t\texit(0)\n\ti = i + 1\n\tif b >= i:\n\t\tb = b - i\n\telse:\n\t\tprint('Valera\\n')\n\t\texit(0)\n\ti = i + 1\n", "(vladik, valera) = map(int, input().split())\ni = 0\nwhile True:\n\ti += 1\n\tif i % 2 == 0:\n\t\tif valera < i:\n\t\t\tprint('Valera')\n\t\t\tbreak\n\t\tvalera -= i\n\telse:\n\t\tif vladik < i:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\t\tvladik -= i\n", "(a, b) = map(int, input().split())\nl = 1\nr = 10 ** 9\n\ndef s(n):\n\treturn n * (n + 1) // 2\nwhile r - l > 1:\n\tm = (l + r) // 2\n\tx = 2 * s((m + 1) // 2) - (m + 1) // 2\n\ty = 2 * s(m // 2)\n\tif x <= a and y <= b:\n\t\tl = m\n\telse:\n\t\tr = m\nprint('Valera' if l % 2 == 1 else 'Vladik')\n", "(a, b) = map(int, input().split())\nc = a + b\nfor i in range(1, c + 1):\n\tif i % 2 != 0:\n\t\tif a < i:\n\t\t\tprint('Vladik')\n\t\t\texit()\n\t\telse:\n\t\t\ta -= i\n\telif b < i:\n\t\tprint('Valera')\n\t\texit()\n\telse:\n\t\tb -= i\n", "(Vladik, Valera) = map(int, input().split())\nvla = True\nval = True\nturn = 0\nwhile vla and val:\n\tturn += 1\n\tif turn % 2 != 0:\n\t\tVladik -= turn\n\telse:\n\t\tValera -= turn\n\tif Vladik < 0:\n\t\tvla = False\n\telif Valera < 0:\n\t\tval = False\nif vla:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "from math import sqrt as s\n(n, k) = map(int, input().split())\n(x, y) = (int(s(n)), (-1 + s(1 + 4 * k)) // 2)\nprint(['Valera', 'Vladik'][x <= y])\n", "x = input()\na = []\n\ndef findmax(a, b):\n\tif a > b:\n\t\treturn a\n\telse:\n\t\treturn b\ny = x.split()\ny[0] = int(y[0])\ny[1] = int(y[1])\nif y[0] == 1 and y[1] == 0:\n\ta = ['Valera']\nif y[0] == 1 and y[1] == 1:\n\ta = ['Valera']\nif y[0] == 0 and y[1] == 1:\n\ta = ['Vladik']\nif y[0] == 0 and y[1] == 0:\n\ta = ['Vladik']\nfor i in range(1, findmax(y[0], y[1]) + 2, 1):\n\tif i % 2 != 0:\n\t\tif y[0] >= i:\n\t\t\ty[0] = y[0] - i\n\t\telse:\n\t\t\ta = ['Vladik']\n\t\t\tbreak\n\telif y[1] >= i:\n\t\ty[1] = y[1] - i\n\telse:\n\t\ta = ['Valera']\n\t\tbreak\nprint(a[0])\n", "__author__ = 'soshika'\nvelera = 'Valera'\nvladik = 'Vladik'\nans = str()\n(b, a) = map(int, input().split())\nstep = 0\nturn = 1\nwhile True:\n\tif turn:\n\t\tif a - step >= 0:\n\t\t\ta -= step\n\t\telse:\n\t\t\tans = velera\n\t\t\tbreak\n\telif b - step >= 0:\n\t\tb -= step\n\telse:\n\t\tans = vladik\n\t\tbreak\n\tstep += 1\n\tturn ^= 1\nprint(ans)\n", "(n, m) = map(int, input().split())\ni = 1\nwhile n >= 0 and m >= 0:\n\tn -= i\n\ti += 1\n\tif n < 0:\n\t\tprint('Vladik')\n\t\tbreak\n\tm -= i\n\ti += 1\n\tif m < 0:\n\t\tprint('Valera')\n\t\tbreak\n", "inp = input().split(' ')\nvladik = int(inp[0])\nvalera = int(inp[1])\nsub = 1\nwhile vladik >= 0 and valera >= 0:\n\tif sub % 2 != 0:\n\t\tvladik -= sub\n\t\tsub += 1\n\telif sub % 2 == 0:\n\t\tvalera -= sub\n\t\tsub += 1\n\tif valera < 0:\n\t\tprint('Valera')\n\t\tbreak\n\telif vladik < 0:\n\t\tprint('Vladik')\n\t\tbreak\n", "(a, b) = map(int, input().split())\nfor i in range(1, max(a, b) + 1):\n\tif i % 2 != 0:\n\t\ta -= i\n\telse:\n\t\tb -= i\n\tif a - (i + 1) < 0 and i % 2 == 0:\n\t\tf = 1\n\t\tbreak\n\telif b - (i + 1) < 0 and i % 2 != 0:\n\t\tf = 2\n\t\tbreak\nif f == 1:\n\tprint('Vladik')\nelif f == 2:\n\tprint('Valera')\n", "from sys import stdin\nfor line in stdin:\n\tentrada = line.splitlines()\n\tbreak\ni = 0\ncant_dulces = [int(entrada[0].split()[0]), int(entrada[0].split()[1])]\ncont = 1\nwhile cant_dulces[i] >= cont:\n\tif i == 0:\n\t\tcant_dulces[i] = cant_dulces[i] - cont\n\t\tcont += 1\n\t\ti = 1\n\telse:\n\t\tcant_dulces[i] = cant_dulces[i] - cont\n\t\tcont += 1\n\t\ti = 0\nif i == 0:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "(a, b) = input().split()\na = int(a)\nb = int(b)\ni = 1\nl = 0\nctr1 = 0\nwhile True:\n\tl += i\n\ti += 2\n\tif l > a:\n\t\tbreak\n\tctr1 += 1\ni = 2\nr = 0\nctr2 = 0\nwhile True:\n\tr += i\n\ti += 2\n\tif r > b:\n\t\tbreak\n\tctr2 += 1\nif ctr1 > ctr2:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "(a, b) = [int(i) for i in input().split()]\nl = 0\nr = 1000000000\nwhile l < r:\n\tcur = (l + r) // 2 if (l + r) % 2 == 0 else (l + r) // 2 + 1\n\tif cur * cur <= a:\n\t\tl = cur\n\telse:\n\t\tr = cur - 1\nares = l\nl = 0\nr = 1000000000\nwhile l < r:\n\tcur = (l + r) // 2 if (l + r) % 2 == 0 else (l + r) // 2 + 1\n\tif (2 + 2 * cur) * cur // 2 <= b:\n\t\tl = cur\n\telse:\n\t\tr = cur - 1\nbres = l\nif ares == bres:\n\tprint('Vladik')\nelif ares > bres:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "(a, b) = map(int, input().split())\ncnt = 1\nwhile 1:\n\tif cnt & 1:\n\t\ta -= cnt\n\telse:\n\t\tb -= cnt\n\tif a < 0:\n\t\tprint('Vladik')\n\t\tquit()\n\telif b < 0:\n\t\tprint('Valera')\n\t\tquit()\n\telse:\n\t\tcnt += 1\n", "import math\nn = input().split(' ')\na = int(n[0])\nb = int(n[1])\nn = (math.sqrt(4 * b + 1) - 1) / 2\nm = int(math.sqrt(a))\nif m <= n:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "def fullsq2(n, p1, p2):\n\tif p1 + 1 == p2:\n\t\tif p1 * p1 <= n:\n\t\t\treturn p1\n\t\telse:\n\t\t\treturn p2\n\tp = (p1 + p2) // 2\n\tpp = p * p\n\tif pp == n:\n\t\treturn p\n\tif pp < n:\n\t\treturn fullsq2(n, p, p2)\n\telse:\n\t\treturn fullsq2(n, p1, p)\n\ndef fullsq(n):\n\tif n == 0:\n\t\treturn 0\n\tif n <= 3:\n\t\treturn 1\n\treturn fullsq2(n, 0, n)\n\ndef fullseq2(n, p1, p2):\n\tif p1 + 1 == p2:\n\t\tif p1 * (p1 + 1) <= n:\n\t\t\treturn p1\n\t\telse:\n\t\t\treturn p2\n\tp = (p1 + p2) // 2\n\tpp = p * (p + 1)\n\tif pp == n:\n\t\treturn p\n\tif pp < n:\n\t\treturn fullseq2(n, p, p2)\n\telse:\n\t\treturn fullseq2(n, p1, p)\n\ndef fullseq(n):\n\tif n <= 1:\n\t\treturn 0\n\tif n <= 5:\n\t\treturn 1\n\treturn fullseq2(n, 0, n)\n(a, b) = map(int, input().split())\nprint(('Vladik', 'Valera')[fullsq(a) > fullseq(b)])\n", "import math\n(vladik, valera) = map(int, input().split())\nturn = 1\nvladik_gives = 1\nvalera_gives = 2\nzero = []\nwhile vladik > 0 or valera > 0:\n\tif vladik < 0 or valera < 0:\n\t\tbreak\n\tif turn % 2 == 0:\n\t\tvalera -= valera_gives\n\t\tvalera_gives += 2\n\telse:\n\t\tvladik -= vladik_gives\n\t\tvladik_gives += 2\n\tif valera == 0:\n\t\tzero.append('Valera')\n\tif vladik == 0:\n\t\tzero.append('Vladik')\n\tturn += 1\nif vladik == 0 and valera == 0:\n\tprint(zero[0])\nelif vladik <= valera:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "__author__ = 'artyom'\n\ndef main():\n\ta = read(3)\n\ti = 0\n\tc = 1\n\twhile True:\n\t\tif a[i] < c:\n\t\t\treturn i\n\t\ta[i] -= c\n\t\tc += 1\n\t\ti ^= 1\n\ndef read(mode=1, size=None):\n\tif mode == 0:\n\t\treturn input().strip()\n\tif mode == 1:\n\t\treturn int(input().strip())\n\tif mode == 2:\n\t\treturn input().strip().split()\n\tif mode == 3:\n\t\treturn list(map(int, input().strip().split()))\n\ta = []\n\tfor _ in range(size):\n\t\ta.append(read(3))\n\treturn a\n\ndef write(s='\\n'):\n\tif s is None:\n\t\ts = ''\n\tif isinstance(s, tuple) or isinstance(s, list):\n\t\ts = ' '.join(map(str, s))\n\ts = str(s)\n\tprint(s)\nwrite(['Vladik', 'Valera'][main()])\n", "def read():\n\treturn [int(v) for v in input().split()]\n\ndef main():\n\t(a, b) = read()\n\tx = int(a ** 0.5)\n\tif x * x <= a:\n\t\tx += 1\n\ty = int(((4 * b + 1) ** 0.5 - 1) / 2)\n\tif y * (y + 1) <= b:\n\t\ty += 1\n\tif x <= y:\n\t\tprint('Vladik')\n\telse:\n\t\tprint('Valera')\nmain()\n", "def READ():\n\treturn map(int, input().split())\nvladikTurn = True\nvaleraTurn = False\nvladik = True\nvalera = True\n(a, b) = READ()\nfor f in range(1, 10 ** 9 + 1, 1):\n\tif vladikTurn:\n\t\ta -= f\n\t\tif a < 0:\n\t\t\tvladik = False\n\t\t\tbreak\n\t\tvladikTurn = False\n\t\tvaleraTurn = True\n\telif valeraTurn:\n\t\tb -= f\n\t\tif b < 0:\n\t\t\tvalera = False\n\t\t\tbreak\n\t\tvaleraTurn = False\n\t\tvladikTurn = True\nif vladik:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "import math as mt\nimport sys, string, bisect\ninput = sys.stdin.readline\nimport random\nfrom collections import deque, defaultdict\nL = lambda : list(map(int, input().split()))\nLs = lambda : list(input().split())\nM = lambda : map(int, input().split())\nI = lambda : int(input())\n(n, m) = M()\ni = 0\nwhile True:\n\tif i % 2 == 0:\n\t\tn -= i + 1\n\t\tif n < 0:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\telse:\n\t\tm -= i + 1\n\t\tif m < 0:\n\t\t\tprint('Valera')\n\t\t\tbreak\n\ti += 1\n", "(a, b) = map(int, input().split())\ni = 1\nvladik = True\nwhile True:\n\tif vladik:\n\t\tif a - i < 0:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\t\telse:\n\t\t\tvladik = False\n\t\t\ta -= i\n\t\t\ti += 1\n\telif b - i < 0:\n\t\tprint('Valera')\n\t\tbreak\n\telse:\n\t\tvladik = True\n\t\tb -= i\n\t\ti += 1\n", "(vl, va) = map(int, input().split())\nstep = 1\nwhile 1:\n\tif step % 2 == 1:\n\t\tif vl < step:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\t\tvl -= step\n\telse:\n\t\tif va < step:\n\t\t\tprint('Valera')\n\t\t\tbreak\n\t\tva -= step\n\tstep += 1\n", "(a, b) = map(int, input().split())\n(n1, n2) = (0, 0)\nup = 10 ** 9\nlow = 0\nwhile up > low:\n\tm = (up + low) // 2\n\tlast = 2 * m - 1\n\ttot = (1 + last) * m // 2\n\tif tot > a:\n\t\tup = m\n\telif tot < a:\n\t\tlow = m + 1\n\t\tn1 = max(n1, m)\n\telse:\n\t\tn1 = m\n\t\tbreak\nup = 10 ** 9\nlow = 0\nwhile up > low:\n\tm = (up + low) // 2\n\tlast = 2 * m\n\ttot = (2 + last) * m // 2\n\tif tot > b:\n\t\tup = m\n\telif tot < b:\n\t\tlow = m + 1\n\t\tn2 = max(n2, m)\n\telse:\n\t\tn2 = m\n\t\tbreak\nif n1 > n2:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "(m, n) = map(int, input().split())\nval = int(m ** (1 / 2))\nval += 1\ntemp = val * (val - 1)\nif n >= temp:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "(a, b) = map(int, input().split())\ndiff = 1\ncount = 0\nwhile True:\n\tif not count % 2:\n\t\ta -= diff\n\t\tdiff += 1\n\telse:\n\t\tb -= diff\n\t\tdiff += 1\n\tif a < 0:\n\t\tbreak\n\telif b < 0:\n\t\tbreak\n\tcount += 1\nif count % 2:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "(a, b) = [int(i) for i in input().split(' ')]\nx = 0\nwhile x * x <= a:\n\tx += 1\nmovesa = x - 1\nx = 0\nwhile x * x + x <= b:\n\tx += 1\nmovesb = x - 1\nif movesb < movesa:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "(x, y) = input().split()\nVladik = int(x)\nValera = int(y)\ni = 1\nwhile True:\n\tVladik = Vladik - i\n\tif Vladik < 0:\n\t\tprint('Vladik')\n\t\tbreak\n\ti = i + 1\n\tValera = Valera - i\n\tif Valera < 0:\n\t\tprint('Valera')\n\t\tbreak\n\ti = i + 1\n", "(n, m) = map(int, input().split())\npn = int(n ** 0.5)\npm = int(m ** 0.5)\nif m < pm ** 2 + pm:\n\tpm -= 1\nif pn > pm or (m < 2 and n > 0):\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "import math\nwhile True:\n\ttry:\n\t\t(a, b) = map(int, input().split())\n\texcept:\n\t\tbreak\n\tn = math.sqrt(a)\n\tn = int(n)\n\tbt = (n + 1) * n\n\tif b >= bt:\n\t\tprint('Vladik')\n\telse:\n\t\tprint('Valera')\n", "(a, b) = list(map(int, input().split()))\ns = 1\naa = 1\nbb = 2\nfor x in range(555555555):\n\tif a - aa >= 0 and b - bb >= 0:\n\t\tif s == 1:\n\t\t\ta -= aa\n\t\t\taa += 2\n\t\t\ts = 0\n\t\telse:\n\t\t\tb -= bb\n\t\t\tbb += 2\n\t\t\ts = 1\n\telse:\n\t\tbreak\nif s == 1:\n\tif a - aa < 0:\n\t\tprint('Vladik')\n\telse:\n\t\tprint('Valera')\nelif b - bb < 0:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "(a, b) = map(int, input().split())\nk = 0\nwhile a >= 0:\n\ta -= 2 * k + 1\n\tb -= 2 * k + 2\n\tif a < 0:\n\t\tprint('Vladik')\n\t\tbreak\n\tif b < 0:\n\t\tprint('Valera')\n\t\tbreak\n\tk += 1\n", "(a, b) = [int(i) for i in input().split()]\ncount = 1\nwhile True:\n\tif count % 2 == 1:\n\t\tif a >= count:\n\t\t\ta -= count\n\t\t\tcount += 1\n\t\telse:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\telif b >= count:\n\t\tb -= count\n\t\tcount += 1\n\telse:\n\t\tprint('Valera')\n\t\tbreak\n", "(a, b) = map(int, input().split())\ni = 1\nwhile a >= i or b >= i:\n\ta -= i\n\ti += 1\n\tif b < i:\n\t\tprint('Valera')\n\t\texit()\n\tb -= i\n\ti += 1\n\tif a < i:\n\t\tprint('Vladik')\n\t\texit()\n", "(vd, vl) = map(int, input().split())\ni = 1\nwhile 1:\n\tif i % 2:\n\t\tvd = vd - i\n\t\ti = i + 1\n\t\tif vl < i:\n\t\t\tprint('Valera')\n\t\t\tbreak\n\telse:\n\t\tvl = vl - i\n\t\ti = i + 1\n\t\tif vd < i:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n", "(a, b) = map(int, input().split())\nk = [a, b]\nf = 0\nct = 1\nwhile True:\n\tif k[f] >= ct:\n\t\tk[f] -= ct\n\telif f:\n\t\tprint('Valera')\n\t\tbreak\n\telse:\n\t\tprint('Vladik')\n\t\tbreak\n\tf ^= 1\n\tct += 1\n", "(a, b) = map(int, input().strip().split())\nvla_times = int(a ** 0.5)\nval_times = int(((4 * b + 1) ** 0.5 - 1) / 2)\nif vla_times > val_times:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "a = list(map(int, input().split()))\n(d, i) = (1, 0)\nwhile a[i] >= d:\n\ta[i] -= d\n\ti = (i + 1) % 2\n\td += 1\nif i == 0:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "(a, b) = input().split(' ')\na = int(a)\nb = int(b)\nlast = 0\nsecond = False\nwhile True:\n\tlast += 1\n\tif second == False:\n\t\ta -= last\n\t\tif b - last <= 0:\n\t\t\tbreak\n\t\tsecond = True\n\telse:\n\t\tb -= last\n\t\tif a - last <= 0:\n\t\t\tbreak\n\t\tsecond = False\nif second == False:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "import math\n(a1, a2) = input().split()\na1 = int(a1)\na2 = int(a2)\nif a1 < 1:\n\tprint('Vladik')\nelif a2 < 2:\n\tprint('Valera')\nelif a1 == 1 and a2 == 2:\n\tprint('Vladik')\nelse:\n\tk1 = int(math.sqrt(a1))\n\ti = 1\n\twhile a2 - i * (i + 1) >= 0:\n\t\ti = i + 1\n\tk2 = i - 1\n\tif k1 > k2:\n\t\tprint('Valera')\n\telse:\n\t\tprint('Vladik')\n", "(a, b) = map(int, input().split())\ncont = True\ncounter = 1\nwhile cont:\n\tif counter % 2 == 1:\n\t\tif counter <= a:\n\t\t\ta -= counter\n\t\telse:\n\t\t\tprint('Vladik')\n\t\t\texit()\n\telif counter <= b:\n\t\tb -= counter\n\telse:\n\t\tprint('Valera')\n\t\texit()\n\tcounter += 1\n", "(a, b) = tuple(input().split(' '))\na = int(a)\nb = int(b)\nx = 1\nwhile a > -1 and b > -1:\n\ta -= x\n\tx += 1\n\tb -= x\n\tx += 1\nif a < 0:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "a = list(map(int, input().split()))\nodd = int(a[0] ** (1 / 2))\neven = int(((1 + 4 * a[1]) ** (1 / 2) - 1) // 2)\nif odd > even:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "(a, b) = map(int, input().split())\ni = 0\nf = 0\nz = 1\nwhile z == 1:\n\ti += 1\n\tif f == 0:\n\t\tif a - i >= 0:\n\t\t\ta -= i\n\t\t\tf = 1\n\t\telse:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\telif b - i >= 0:\n\t\tb -= i\n\t\tf = 0\n\telse:\n\t\tprint('Valera')\n\t\tbreak\n", "(naman, vidit) = map(int, input().split())\nn = 1\nn1 = 0\nv = 2\nv1 = 0\nwhile naman >= 0:\n\tnaman -= n\n\tn += 2\n\tn1 += 1\nwhile vidit >= 0:\n\tvidit -= v\n\tv += 2\n\tv1 += 1\nif n1 > v1:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "from sys import stdin, stdout\n\ndef rint():\n\treturn map(int, stdin.readline().split())\n(a, b) = rint()\nfor i in range(1, 10 ** 9):\n\tif i % 2:\n\t\ta -= i\n\telse:\n\t\tb -= i\n\tif a < 0:\n\t\tprint('Vladik')\n\t\texit()\n\tif b < 0:\n\t\tprint('Valera')\n\t\texit()\n", "(m, n) = map(int, input().split())\nz = min(m, n)\ni = 0\nwhile m >= 0 or n >= 0:\n\tif i % 2 == 1:\n\t\tm = m - i\n\t\tif m < 0:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\telif i % 2 == 0:\n\t\tn = n - i\n\t\tif n < 0:\n\t\t\tprint('Valera')\n\t\t\tbreak\n\ti += 1\n", "(v, c) = map(int, input().strip().split()[:2])\nk = 0\nwhile True:\n\tk += 1\n\tif k % 2 != 0:\n\t\tif v >= k:\n\t\t\tv -= k\n\t\telse:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\telif c >= k:\n\t\tc -= k\n\telse:\n\t\tprint('Valera')\n\t\tbreak\n", "import math\narr = input().split()\na = int(arr[0])\nb = int(arr[1])\ni = 1\nwhile a >= 0 and b >= 0:\n\tif i % 2 == 0:\n\t\tb -= i\n\telse:\n\t\ta -= i\n\ti += 1\nif a < 0:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "(vladik, valera) = map(int, input().split())\nn = 1\nwhile 1:\n\tif n % 2 == 1:\n\t\tvladik -= n\n\t\tif vladik < 0:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\telse:\n\t\tvalera -= n\n\t\tif valera < 0:\n\t\t\tprint('Valera')\n\t\t\tbreak\n\tn += 1\n", "from sys import stdin, stdout\n\ndef main():\n\t(a, b) = [int(_) for _ in input().split()]\n\tmoveA = 0\n\tn = 1\n\twhile a >= n:\n\t\ta -= n\n\t\tn += 2\n\t\tmoveA += 1\n\tmoveB = 0\n\tn = 2\n\twhile b >= n:\n\t\tb -= n\n\t\tn += 2\n\t\tmoveB += 1\n\tif moveA <= moveB:\n\t\tstdout.write('Vladik' + '\\n')\n\telse:\n\t\tstdout.write('Valera' + '\\n')\nmain()\n", "(vl, va) = list(map(int, input().strip().split()))\nfor i in range(vl + va):\n\tif i % 2 == 0:\n\t\tvl = vl - (i + 1)\n\t\tif vl < 0:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\telse:\n\t\tva = va - (i + 1)\n\t\tif va < 0:\n\t\t\tprint('Valera')\n\t\t\tbreak\n", "l = input().split()\na = int(l[0])\nb = int(l[1])\ncurr = 1\ncount = 0\nwhile a >= 0:\n\ta -= curr\n\tcurr += 2\n\tcount += 1\ncurr = 2\ncounter = 0\nwhile b >= 0:\n\tb -= curr\n\tcurr += 2\n\tcounter += 1\nif count <= counter:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "(a, b) = map(int, input().split())\ni = 1\nj = 2\nwhile True:\n\tif a < i:\n\t\tprint('Vladik')\n\t\texit()\n\ta -= i\n\tif b < j:\n\t\tprint('Valera')\n\t\texit()\n\tb -= j\n\ti += 2\n\tj += 2\n", "import sys\nfrom math import sqrt\n\ndef main():\n\t(a, b) = list(map(int, sys.stdin.readline().split()))\n\tnvladik = int(sqrt(a))\n\tnvalera = int((-1 + sqrt(1 + 4 * b)) / 2)\n\tif nvladik <= nvalera:\n\t\tresult = 'Vladik'\n\telse:\n\t\tresult = 'Valera'\n\tsys.stdout.write(result + '\\n')\nmain()\n", "(a, b) = list(map(int, input().split()))\ncurr = 1\nwhile True:\n\tif curr % 2 == 1:\n\t\ta -= curr\n\tif curr % 2 == 0:\n\t\tb -= curr\n\tcurr += 1\n\tif a < 0:\n\t\tprint('Vladik')\n\t\treturn\n\tif b < 0:\n\t\tprint('Valera')\n\t\treturn\n", "(a, b) = map(int, input().split())\ns = 1\nnt = 0\nwhile 1:\n\tif nt == 0:\n\t\tif a < s:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\t\ta -= s\n\telif nt == 1:\n\t\tif b < s:\n\t\t\tprint('Valera')\n\t\t\tbreak\n\t\tb -= s\n\ts += 1\n\tnt = (nt + 1) % 2\n", "temp = list(map(int, input().split()))\na = temp[0]\nb = temp[1]\nhighest = max(temp)\nfor x in range(0, highest + 2):\n\tif a < 0 or b < 0:\n\t\tbreak\n\tif x % 2 == 1:\n\t\ta -= x\n\telse:\n\t\tb -= x\nif a < 0:\n\tprint('Vladik')\nelif b < 0:\n\tprint('Valera')\n", "import math\ns = input().strip().split()\na = int(s[0])\nb = int(s[1])\nka = int(math.sqrt(a))\nif ka * (ka + 1) > b:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "from sys import stdin\n\ndef regalar_dulces(dulces_vladik, dulces_valera):\n\tcantidad_dulces = 1\n\tdona_vladik = True\n\tdona_valera = False\n\twhile True:\n\t\tif dona_vladik is True:\n\t\t\tif dulces_vladik >= cantidad_dulces:\n\t\t\t\tdulces_vladik -= cantidad_dulces\n\t\t\t\tdona_vladik = False\n\t\t\t\tdona_valera = True\n\t\t\t\tcantidad_dulces += 1\n\t\t\telse:\n\t\t\t\tprint('Vladik')\n\t\t\t\tbreak\n\t\tif dona_valera is True:\n\t\t\tif dulces_valera >= cantidad_dulces:\n\t\t\t\tdulces_valera -= cantidad_dulces\n\t\t\t\tdona_valera = False\n\t\t\t\tdona_vladik = True\n\t\t\t\tcantidad_dulces += 1\n\t\t\telse:\n\t\t\t\tprint('Valera')\n\t\t\t\tbreak\nfor line in stdin:\n\tcant = line.splitlines()\n\tbreak\na = cant[0].split()[0]\nb = cant[0].split()[1]\nregalar_dulces(int(a), int(b))\n", "(a, b) = map(int, input().split())\nflag = True\nfor i in range(1, 1000000):\n\tif flag == True:\n\t\tflag = False\n\t\tif a < i:\n\t\t\tprint('Vladik')\n\t\t\treturn\n\t\ta -= i\n\telse:\n\t\tflag = True\n\t\tif b < i:\n\t\t\tprint('Valera')\n\t\t\treturn\n\t\tb -= i\n", "import sys\nl = list(map(int, sys.stdin.readline().rstrip().split()))\ncur = 1\nt = 0\nwhile True:\n\tif l[t] < cur:\n\t\tif t:\n\t\t\tsys.stdout.write('Valera')\n\t\t\tbreak\n\t\telse:\n\t\t\tsys.stdout.write('Vladik')\n\t\t\tbreak\n\telse:\n\t\tl[t] -= cur\n\t\tcur += 1\n\t\tif t:\n\t\t\tt = 0\n\t\telse:\n\t\t\tt += 1\n", "(x, y) = map(int, input().split())\nka = 1\nwhile True:\n\tif ka % 2 == 0:\n\t\ty = y - ka\n\t\tif y < 0:\n\t\t\tprint('Valera')\n\t\t\tbreak\n\telse:\n\t\tx = x - ka\n\t\tif x < 0:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\tka = ka + 1\n", "(a, b) = map(int, input().split())\nn = 1\nwhile True:\n\tif a < n:\n\t\tprint('Vladik')\n\t\texit()\n\telse:\n\t\ta -= n\n\t\tn += 1\n\tif b < n:\n\t\tprint('Valera')\n\t\texit()\n\telse:\n\t\tb -= n\n\t\tn += 1\n", "(a, b) = [int(i) for i in input().split()]\nt = 1\np = 2\nwhile True:\n\tif a >= t:\n\t\ta -= t\n\t\tt += 2\n\telse:\n\t\tprint('Vladik')\n\t\tbreak\n\tif b >= p:\n\t\tb -= p\n\t\tp += 2\n\telse:\n\t\tprint('Valera')\n\t\tbreak\n", "(a, b) = map(int, input().split())\nv = 1\nvladikTurn = True\nwhile a >= v or b >= v:\n\tif vladikTurn:\n\t\tif a - v >= 0:\n\t\t\ta -= v\n\t\telse:\n\t\t\tbreak\n\telif b - v >= 0:\n\t\tb -= v\n\telse:\n\t\tbreak\n\tv += 1\n\tvladikTurn = not vladikTurn\nif not vladikTurn:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "x = list(map(int, input().split()))\npos = 0\nc = 1\nwhile True:\n\tif x[pos] >= c:\n\t\tx[pos] -= c\n\telse:\n\t\tprint('Vladik' if pos % 2 == 0 else 'Valera')\n\t\texit(0)\n\tc += 1\n\tpos = (pos + 1) % 2\n", "(n, m) = map(int, input().split())\ni = 1\nu = False\nq = False\nwhile True:\n\tif n < i and i % 2 != 0:\n\t\tu = True\n\t\tbreak\n\tif m < i and i % 2 == 0:\n\t\tq = True\n\t\tbreak\n\tif i % 2 != 0:\n\t\tn -= i\n\telse:\n\t\tm -= i\n\ti += 1\nif q:\n\tprint('Valera')\nif u:\n\tprint('Vladik')\n", "v = list(map(int, input().split()))\nv.insert(0, 0)\nflag = 1\ni = 1\nwhile v[-flag] >= 0:\n\tv[flag] -= i\n\tflag = -flag\n\ti += 1\nif v[1] < 0:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "(a, b) = map(int, input().split())\nk = 0\ncount = 1\nwhile k != 1:\n\ta = a - count\n\tcount = count + 1\n\tb = b - count\n\tcount = count + 1\n\tif a < 0:\n\t\tprint('Vladik')\n\t\tk = 1\n\t\tbreak\n\telif b < 0:\n\t\tprint('Valera')\n\t\tk = 1\n\t\tbreak\n", "def solve(a, b):\n\titer = int(10 ** 4 * 10 ** 0.5)\n\tfor k in range(1, 10 ** 9):\n\t\ta_star = k ** 2\n\t\tb_star = k * (k + 1)\n\t\tif a_star > a:\n\t\t\treturn 'Vladik'\n\t\tif b_star > b:\n\t\t\treturn 'Valera'\n(a, b) = input().split()\na = int(a)\nb = int(b)\nprint(solve(a, b))\n", "(a, b) = input().split(' ')\na = int(a)\nb = int(b)\ntemp = 0\nturn = True\nwhile True:\n\ttemp += 1\n\tif turn:\n\t\ta -= temp\n\telse:\n\t\tb -= temp\n\tif a < 0:\n\t\tprint('Vladik')\n\t\tbreak\n\tif b < 0:\n\t\tprint('Valera')\n\t\tbreak\n\tturn = not turn\n", "(a, b) = map(int, input().split())\n(x, y) = (1, 2)\nwhile True:\n\tif a < x:\n\t\tprint('Vladik')\n\t\texit()\n\ta -= x\n\tif b < y:\n\t\tprint('Valera')\n\t\texit()\n\tb -= y\n\tx += 2\n\ty += 2\n", "from math import sqrt, floor\n\ndef main():\n\t(a, b) = map(float, input().split())\n\tprint(('Vladik', 'Valera')[floor(sqrt(a)) > floor(sqrt(b + 0.25) - 0.5)])\nmain()\n", "(a, b) = [int(x) for x in input().split()]\nn = 1\nwhile True:\n\tif n % 2 == 1:\n\t\tif a - (n - 1) // 2 * ((n - 1) // 2) < 0:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\telif b - n // 2 * (n // 2) + n // 2 < 0:\n\t\tprint('Valera')\n\t\tbreak\n\tn += 1\n", "from math import sqrt, floor\n(a, b) = list(map(int, input().split()))\nq = floor(sqrt(a))\nw = floor((sqrt(4 * b + 1) - 1) / 2)\nprint('Vladik' if q <= w else 'Valera')\n", "def solution(l1):\n\tvladik = l1[0]\n\tvalera = l1[1]\n\ti = 1\n\twhile True:\n\t\tif i % 2:\n\t\t\tvladik -= i\n\t\telse:\n\t\t\tvalera -= i\n\t\tif vladik < 0:\n\t\t\treturn 'Vladik'\n\t\tif valera < 0:\n\t\t\treturn 'Valera'\n\t\ti += 1\n\ndef answer():\n\tl1 = [int(x) for x in input().split()]\n\tprint(solution(l1))\nanswer()\n", "(a, b) = map(int, input().split(' '))\nstep = 1\nwhile True:\n\tif a < step:\n\t\tprint('Vladik')\n\t\texit()\n\ta -= step\n\tif b < step + 1:\n\t\tprint('Valera')\n\t\texit()\n\tb -= step + 1\n\tstep += 2\n", "import math\n(a, b) = map(int, input().split())\ntemp = int(math.sqrt(2 * (a + b)))\nn = 0\nna = 0\nnb = 0\nsuma = 0\nsumb = 0\ni = 1\nna = 0\nwhile suma <= a:\n\tna += 1\n\tsuma += i\n\ti += 2\nna -= 1\ni = 2\nwhile sumb <= b:\n\tsumb += i\n\ti += 2\n\tnb += 1\nnb -= 1\nif na > nb:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "(a, b) = (int(x) for x in input().split(' '))\nk = 1\nwhile b >= 0:\n\ta -= k\n\tk += 1\n\tif a < 0:\n\t\tbreak\n\tb -= k\n\tk += 1\nif a < 0:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "vl_Va = [int(x) for x in input().strip().split()]\nvl = vl_Va[0]\nVa = vl_Va[1]\nn_vl = 0\nval = 1\nwhile vl - val >= 0:\n\tn_vl += 1\n\tvl -= val\n\tval += 2\nn_Va = 0\nval = 2\nwhile Va - val >= 0:\n\tn_Va += 1\n\tVa -= val\n\tval += 2\nif n_vl > n_Va:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "(vla, val) = map(int, input().split())\nc1 = 1\nc2 = 2\nct = 1\nwhile True:\n\tif ct % 2 == 1:\n\t\tif vla < c1:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\t\tvla -= c1\n\t\tc1 += 2\n\telse:\n\t\tif val < c2:\n\t\t\tprint('Valera')\n\t\t\tbreak\n\t\tval -= c2\n\t\tc2 += 2\n\tct += 1\n", "string = input()\nnumbers = string.split()\na = int(numbers[0])\nb = int(numbers[1])\nn = 0\nwhile True:\n\tn += 1\n\tif n % 2 == 0:\n\t\tb -= n\n\t\tif b < 0:\n\t\t\tprint('Valera')\n\t\t\tbreak\n\telse:\n\t\ta -= n\n\t\tif a < 0:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n", "(a, b) = list(map(int, input().split()))\ni = 1\ncur = 0\nwhile (1 - cur) * a + cur * b >= i:\n\tif cur == 0:\n\t\ta -= i\n\telse:\n\t\tb -= i\n\ti += 1\n\tcur = 1 - cur\nif cur == 0:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "(a, b) = map(int, input().split())\nf = [b, a]\nc = 1\nwhile True:\n\tif f[c % 2] < c:\n\t\tbreak\n\telse:\n\t\tf[c % 2] -= c\n\t\tc += 1\nprint(['Valera', 'Vladik'][c % 2])\n", "import math\nx = list(map(int, input().split()))\nn = int(math.sqrt(x[0]))\ny = x[1] - (pow(n, 2) + n)\nif y >= 0:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "(a, b) = map(int, input().split())\nu = 0\nwhile True:\n\tu += 1\n\ta -= u\n\tif a < 0:\n\t\tprint('Vladik')\n\t\tbreak\n\tu += 1\n\tb -= u\n\tif b < 0:\n\t\tprint('Valera')\n\t\tbreak\n", "def main():\n\tcounts = [int(x) for x in input().split()]\n\t(vlad_quantity, valera_quantity) = (counts[0], counts[1])\n\tcounter = 1\n\twhile True:\n\t\tif counter % 2 != 0:\n\t\t\tif vlad_quantity >= counter:\n\t\t\t\tvlad_quantity -= counter\n\t\t\telse:\n\t\t\t\treturn 'Vladik'\n\t\telif valera_quantity >= counter:\n\t\t\tvalera_quantity -= counter\n\t\telse:\n\t\t\treturn 'Valera'\n\t\tcounter += 1\nprint(main())\n", "(vladiks_nr, valeras_nr) = (int(x) for x in input().split())\ncurr_player = 0\ncurr_nr = vladiks_nr\ncurr_bet = 1\nwhile curr_nr >= curr_bet:\n\tif curr_player == 0:\n\t\tvladiks_nr -= curr_bet\n\t\tcurr_bet += 1\n\t\tcurr_player = 1\n\t\tcurr_nr = valeras_nr\n\telif curr_player == 1:\n\t\tvaleras_nr -= curr_bet\n\t\tcurr_bet += 1\n\t\tcurr_player = 0\n\t\tcurr_nr = vladiks_nr\nif curr_player == 0:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "import math\n\ndef quadratic_formula(a, b, c):\n\tanswer = (b * -1 + math.sqrt(b * b - 4 * a * c)) / (2 * a)\n\treturn answer\n\ndef find_n_arithmetic_sum(total, first, difference=2):\n\tn = quadratic_formula(difference, 2 * first - difference, 2 * total * -1)\n\tn = n // 1\n\treturn n\n\ndef main():\n\ta = b = 0\n\tan = bn = 0\n\t(a, b) = map(int, input().split())\n\tan = find_n_arithmetic_sum(a, 1)\n\tbn = find_n_arithmetic_sum(b, 2)\n\tif an > bn:\n\t\tprint('Valera')\n\telse:\n\t\tprint('Vladik')\n\treturn\nmain()\n", "(a, b) = list(map(int, input().split()))\nd1 = int(a ** 0.5)\nd2 = int(((1 + 4 * b) ** 0.5 - 1) / 2)\nif d1 > d2:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "from math import pow\n(x, y) = map(int, input().split())\na = int(pow(x, 0.5)) + 1\nb = int((-1 + pow(1 + 4 * y, 0.5)) / 2) + 1\nif a <= b:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "(a, i, c) = (list(map(int, input().split())), 1, 0)\nwhile a[c] >= i:\n\t(a[c], i, c) = (a[c] - i, i + 1, 1 - c)\nprint('Valera' if c else 'Vladik')\n", "import sys\ninput = sys.stdin.readline\n\ndef ceil(x):\n\tif x != int(x):\n\t\tx = int(x) + 1\n\treturn x\n\ndef factorial(x, m):\n\tval = 1\n\twhile x > 0:\n\t\tval = val * x % m\n\t\tx -= 1\n\treturn val\n\ndef swaparr(arr, a, b):\n\ttemp = arr[a]\n\tarr[a] = arr[b]\n\tarr[b] = temp\n\ndef gcd(a, b):\n\tif b == 0:\n\t\treturn a\n\treturn gcd(b, a % b)\n\ndef nCr(n, k):\n\tif k > n - k:\n\t\tk = n - k\n\tres = 1\n\tfor i in range(k):\n\t\tres = res * (n - i)\n\t\tres = res / (i + 1)\n\treturn int(res)\n\ndef upper_bound(a, x, lo=0, hi=None):\n\tif hi == None:\n\t\thi = len(a)\n\twhile lo < hi:\n\t\tmid = (lo + hi) // 2\n\t\tif a[mid] < x:\n\t\t\tlo = mid + 1\n\t\telse:\n\t\t\thi = mid\n\treturn lo\n\ndef primefs(n):\n\tprimes = {}\n\twhile n % 2 == 0 and n > 0:\n\t\tprimes[2] = primes.get(2, 0) + 1\n\t\tn = n // 2\n\tfor i in range(3, int(n ** 0.5) + 2, 2):\n\t\twhile n % i == 0 and n > 0:\n\t\t\tprimes[i] = primes.get(i, 0) + 1\n\t\t\tn = n // i\n\tif n > 2:\n\t\tprimes[n] = primes.get(n, 0) + 1\n\treturn primes\n\ndef power(x, y, p):\n\tres = 1\n\tx = x % p\n\tif x == 0:\n\t\treturn 0\n\twhile y > 0:\n\t\tif y & 1 == 1:\n\t\t\tres = res * x % p\n\t\ty = y >> 1\n\t\tx = x * x % p\n\treturn res\n\ndef swap(a, b):\n\ttemp = a\n\ta = b\n\tb = temp\n\treturn (a, b)\n\ndef find(x, link):\n\tp = x\n\twhile p != link[p]:\n\t\tp = link[p]\n\twhile x != p:\n\t\tnex = link[x]\n\t\tlink[x] = p\n\t\tx = nex\n\treturn p\n\ndef union(x, y, link, size):\n\tx = find(x, link)\n\ty = find(y, link)\n\tif size[x] < size[y]:\n\t\t(x, y) = swap(x, y)\n\tif x != y:\n\t\tsize[x] += size[y]\n\t\tlink[y] = x\n\ndef sieve(n):\n\tprime = [True for i in range(n + 1)]\n\tp = 2\n\twhile p * p <= n:\n\t\tif prime[p] == True:\n\t\t\tfor i in range(p * p, n + 1, p):\n\t\t\t\tprime[i] = False\n\t\tp += 1\n\treturn prime\nMAXN = int(100000.0 + 5)\n\ndef spf_sieve():\n\tspf[1] = 1\n\tfor i in range(2, MAXN):\n\t\tspf[i] = i\n\tfor i in range(4, MAXN, 2):\n\t\tspf[i] = 2\n\tfor i in range(3, ceil(MAXN ** 0.5), 2):\n\t\tif spf[i] == i:\n\t\t\tfor j in range(i * i, MAXN, i):\n\t\t\t\tif spf[j] == j:\n\t\t\t\t\tspf[j] = i\n\ndef factoriazation(x):\n\tret = {}\n\twhile x != 1:\n\t\tret[spf[x]] = ret.get(spf[x], 0) + 1\n\t\tx = x // spf[x]\n\treturn ret\n\ndef int_array():\n\treturn list(map(int, input().strip().split()))\n\ndef float_array():\n\treturn list(map(float, input().strip().split()))\n\ndef str_array():\n\treturn input().strip().split()\nMOD = int(1000000000.0) + 7\nCMOD = 998244353\nINF = float('inf')\nNINF = -float('inf')\nfrom itertools import permutations\nimport math\n\ndef solve():\n\t(a, b) = map(int, input().split())\n\tfor i in range(1, 10 ** 9):\n\t\tif i % 2 == 1:\n\t\t\ta -= i\n\t\telse:\n\t\t\tb -= i\n\t\tif a < 0:\n\t\t\tprint('Vladik')\n\t\t\treturn\n\t\telif b < 0:\n\t\t\tprint('Valera')\n\t\t\treturn\nfor _ in range(1):\n\tsolve()\n", "(n, v) = [int(i) for i in input().split()]\ni = 0\nj = 1\nwhile True:\n\tif i % 2 == 0:\n\t\tif n >= j:\n\t\t\tn -= j\n\t\t\tj += 1\n\t\t\ti = (i + 1) % 2\n\t\telse:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\telif v >= j:\n\t\tv -= j\n\t\tj += 1\n\t\ti = (i + 1) % 2\n\telse:\n\t\tprint('Valera')\n\t\tbreak\n", "(a, b) = map(int, input().split())\ndiff = 1\ncount = 0\np = True\nwhile p:\n\tif not count % 2:\n\t\ta -= diff\n\t\tdiff += 1\n\telse:\n\t\tb -= diff\n\t\tdiff += 1\n\tcount += 1\n\tif a <= 0 or b <= 0:\n\t\tif b >= diff:\n\t\t\tb -= diff\n\t\t\tcount += 1\n\t\telif a >= diff:\n\t\t\ta -= diff\n\t\t\tcount += 1\n\t\telse:\n\t\t\tp = False\nif a <= 0:\n\tif a < 0:\n\t\tprint('Vladik')\n\telse:\n\t\tprint('Valera')\nelif b <= 0:\n\tif b == 0:\n\t\tprint('Vladik')\n\telse:\n\t\tprint('Valera')\n", "(a, b) = list(map(int, input().split()))\nstrt = 1\ni = 1\nwhile 1:\n\tif i % 2 != 0:\n\t\tif a - strt >= 0:\n\t\t\ta = a - strt\n\t\t\tstrt += 1\n\t\telse:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\telif b - strt >= 0:\n\t\tb = b - strt\n\t\tstrt += 1\n\telse:\n\t\tprint('Valera')\n\t\tbreak\n\ti += 1\n", "(a, b) = list(map(int, input().split()))\nv1 = int(a ** 0.5)\nv2 = (-1 + int((1 + 4 * b) ** 0.5)) // 2\nif v1 > v2:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "a = input()\nb = a.split(' ')\nvk = int(b[0])\nva = int(b[1])\nflag1 = True\nflag2 = True\ncount = 1\nwhile flag1 == True:\n\tif flag2 == True:\n\t\tif vk - count >= 0:\n\t\t\tvk = vk - count\n\t\t\tcount = count + 1\n\t\t\tflag2 = False\n\t\telse:\n\t\t\tflag1 = False\n\telif va - count >= 0:\n\t\tva = va - count\n\t\tcount = count + 1\n\t\tflag2 = True\n\telse:\n\t\tflag1 = False\nif flag2 == True:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "(a, b) = [int(x) for x in input().split(' ')]\nturn = True\nc = 1\nwhile True:\n\tif turn:\n\t\tif a - c >= 0:\n\t\t\ta -= c\n\t\t\tturn = False\n\t\telse:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\telif b - c >= 0:\n\t\tb -= c\n\t\tturn = True\n\telse:\n\t\tprint('Valera')\n\t\tbreak\n\tc += 1\n", "(a, b) = map(int, input().split())\ni = 1\nwin = ''\nwhile a >= 0 and b >= 0:\n\tif i % 2 == 1:\n\t\tif a - i < 0:\n\t\t\twin = 'a'\n\t\t\tbreak\n\t\ta = a - i\n\telse:\n\t\tif b - i < 0:\n\t\t\twin = 'b'\n\t\tb = b - i\n\ti += 1\nif win == 'a':\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "(vladik, valera) = [int(x) for x in input().split()]\ncomp = int(vladik ** 0.5)\nprint(['Valera', 'Vladik'][comp * (comp + 1) <= valera])\n", "(vladik, valera) = list(map(int, input().split(' ')))\ntbg = 1\ncount = 0\nwhile True:\n\tif vladik < tbg and count % 2 == 0:\n\t\tprint('Vladik')\n\t\tbreak\n\tif valera < tbg:\n\t\tprint('Valera')\n\t\tbreak\n\tif count % 2 == 0:\n\t\tvladik -= tbg\n\t\ttbg += 1\n\telse:\n\t\tvalera -= tbg\n\t\ttbg += 1\n\tcount += 1\n", "(m, n) = map(int, input().split())\nfor i in range(min(m, n) + 1):\n\tm -= i * 2 + 1\n\tn -= i * 2 + 2\n\tif m < 0:\n\t\tprint('Vladik')\n\t\tbreak\n\telif n < 0:\n\t\tprint('Valera')\n\t\tbreak\n", "(a, b) = map(int, input().split())\nvladik = True\ni = 1\nwhile a > -1 and b > -1:\n\tif vladik:\n\t\ta -= i\n\telse:\n\t\tb -= i\n\ti += 1\n\tvladik = not vladik\nif vladik:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "(a, b) = map(int, input().split())\nl = 2\nk = 1\nwhile True:\n\tif a - k >= 0:\n\t\ta -= k\n\t\tk += 2\n\telse:\n\t\tprint('Vladik')\n\t\tbreak\n\tif b - l >= 0:\n\t\tb -= l\n\t\tl += 2\n\telse:\n\t\tprint('Valera')\n\t\tbreak\n", "import math, string, itertools, fractions, heapq, collections, re, array, bisect, sys, copy, functools\nsys.setrecursionlimit(10 ** 7)\ninf = 10 ** 20\neps = 1.0 / 10 ** 10\nmod = 10 ** 9 + 7\ndd = [(-1, 0), (0, 1), (1, 0), (0, -1)]\nddn = [(-1, 0), (-1, 1), (0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-1, -1)]\n\ndef LI():\n\treturn list(map(int, sys.stdin.readline().split()))\n\ndef LLI():\n\treturn [tuple(map(int, l.split())) for l in sys.stdin]\n\ndef LI_():\n\treturn [int(x) - 1 for x in sys.stdin.readline().split()]\n\ndef LF():\n\treturn [float(x) for x in sys.stdin.readline().split()]\n\ndef LS():\n\treturn sys.stdin.readline().split()\n\ndef I():\n\treturn int(sys.stdin.readline())\n\ndef F():\n\treturn float(sys.stdin.readline())\n\ndef S():\n\treturn input()\n\ndef pf(s):\n\treturn print(s, flush=True)\n\ndef main():\n\t(a, b) = LI()\n\tt = 1\n\twhile 1:\n\t\tif a < t:\n\t\t\treturn 'Vladik'\n\t\ta -= t\n\t\tt += 1\n\t\tif b < t:\n\t\t\treturn 'Valera'\n\t\tb -= t\n\t\tt += 1\n\treturn -1\nprint(main())\n", "from math import sqrt\nimport sys\ns = sys.stdin.read().strip().split('\\n')\na = int(s[0].split()[0])\nb = int(s[0].split()[1])\nc = int(sqrt(a))\nd = int(sqrt(b))\nif b - d ** 2 < d:\n\td -= 1\nif c <= d:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "def v_v(a, b):\n\tcount = 1\n\twhile True:\n\t\tif count % 2 == 1:\n\t\t\ta -= count\n\t\t\tif a < 0:\n\t\t\t\treturn 'Vladik'\n\t\telse:\n\t\t\tb -= count\n\t\t\tif b < 0:\n\t\t\t\treturn 'Valera'\n\t\tcount += 1\n(A, B) = [int(j) for j in input().split()]\nprint(v_v(A, B))\n", "(a, b) = map(int, input().split())\ntemp = int(b ** 0.5)\nA = int(a ** 0.5)\nB = temp - (temp * (temp + 1) > b)\nprint(('Vladik', 'Valera')[A > B])\n", "(x, y) = map(int, input().split())\ni = 0\nwhile 1:\n\tif i % 2 == 0:\n\t\ty -= i\n\telse:\n\t\tx -= i\n\tif x < 0:\n\t\tprint('Vladik')\n\t\texit()\n\tif y < 0:\n\t\tprint('Valera')\n\t\texit()\n\ti += 1\n", "def main():\n\t(a, b) = map(int, input().split())\n\ti = 1\n\twhile 1:\n\t\tif i & 1:\n\t\t\tif a >= i:\n\t\t\t\ta -= i\n\t\t\telse:\n\t\t\t\tprint('Vladik')\n\t\t\t\tbreak\n\t\telif b >= i:\n\t\t\tb -= i\n\t\telse:\n\t\t\tprint('Valera')\n\t\t\tbreak\n\t\ti += 1\nmain()\n", "(a, b) = list(map(int, input().split(' ')))\ni = 1\nd = 0\nwhile a >= 0 and b >= 0:\n\tif d == 0:\n\t\ta -= i\n\t\td = 1\n\telse:\n\t\tb -= i\n\t\td = 0\n\ti += 1\nif d == 1:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "(n, m) = map(int, input().split())\nx = 1\nwhile 1:\n\tif x % 2 == 0:\n\t\tif x > m:\n\t\t\tprint('Valera')\n\t\t\tbreak\n\t\tm = m - x\n\telse:\n\t\tif x > n:\n\t\t\tprint('Vladik')\n\t\t\tbreak\n\t\tn = n - x\n\tx += 1\n", "data_str = input('')\ndata = [int(num) for num in data_str.split()]\nstep1 = 0\nwhile True:\n\tgive = step1 * 2 + 1\n\tdata[0] -= give\n\tif data[0] < 0:\n\t\tbreak\n\tstep1 += 1\nstep2 = 0\nwhile True:\n\tgive = (step2 + 1) * 2\n\tdata[1] -= give\n\tif data[1] < 0:\n\t\tbreak\n\tstep2 += 1\nif step1 > step2:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "a = list(map(int, input().split()))\nb = ['Valera', 'Vladik']\na = a[::-1]\nfor i in range(1, 1000100):\n\tj = i % 2\n\tif a[j] >= i:\n\t\ta[j] -= i\n\telse:\n\t\tprint(b[j])\n\t\tbreak\n", "(a, b) = map(int, input().split())\ni = 1\nt = 1\nwhile t and i <= a or (not t and i <= b):\n\tif t:\n\t\ta -= i\n\t\tt = 0\n\telse:\n\t\tb -= i\n\t\tt = 1\n\ti += 1\nprint('Vladik' if t else 'Valera')\n", "def do(a, b):\n\tstep = 0\n\twhile True:\n\t\tif step & 1:\n\t\t\tif a - step < 0:\n\t\t\t\treturn 'Vladik'\n\t\t\telse:\n\t\t\t\ta = a - step\n\t\tif step & 1 == 0:\n\t\t\tif b - step < 0:\n\t\t\t\treturn 'Valera'\n\t\t\telse:\n\t\t\t\tb = b - step\n\t\tstep = step + 1\n(a, b) = map(int, input().split())\nprint(do(a, b))\n", "(a, b) = map(int, input().split())\nn = 1\nwhile a > 0 and b > 0:\n\tif a - n ** 2 < 0:\n\t\tprint('Vladik')\n\t\tbreak\n\tif b - n * (n + 1) < 0:\n\t\tprint('Valera')\n\t\tbreak\n\tn += 1\n", "(a, b) = (int(i) for i in input().split())\nam = (4 * a) ** (1 / 2) // 2\nbm = ((1 + 4 * b) ** (1 / 2) - 1) // 2\nif am > bm:\n\tprint('Valera')\nelse:\n\tprint('Vladik')\n", "from math import *\n(a, b) = map(int, input().split())\nans = 1\nflag = 0\nturn = 1\nwhile flag == 0:\n\tif turn == 1:\n\t\tif a - ans >= 0:\n\t\t\ta -= ans\n\t\t\tturn = 2\n\t\t\tans += 1\n\t\telse:\n\t\t\tflag = 1\n\t\t\tbreak\n\telif b - ans >= 0:\n\t\tb -= ans\n\t\tturn = 1\n\t\tans += 1\n\telse:\n\t\tflag = 1\n\t\tbreak\nif turn == 1:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "import math\n(a, b) = map(int, input().split())\nn = int(math.sqrt(a))\nres = 0\nfor i in range(1, b):\n\tif i * i + i > b:\n\t\tbreak\n\telse:\n\t\tres += 1\nif n <= res:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n", "(X, Y) = map(int, input().split())\nfor i in range(1, 100000000):\n\tif i % 2 == 0:\n\t\tY = Y - i\n\tif i % 2 != 0:\n\t\tX = X - i\n\tif X < 0:\n\t\tprint('Vladik')\n\t\tbreak\n\tif Y < 0:\n\t\tprint('Valera')\n\t\tbreak\n", "(a, b) = map(int, input().split())\nk = 1\nwhile 1:\n\tif a >= k:\n\t\ta -= k\n\telse:\n\t\tprint('Vladik')\n\t\tbreak\n\tk += 1\n\tif b >= k:\n\t\tb -= k\n\telse:\n\t\tprint('Valera')\n\t\tbreak\n\tk += 1\n", "l = [int(i) for i in input().split()]\ni = 1\nt = 0\nwhile l[i] >= t:\n\tl[i] = l[i] - t\n\ti = 1 - i\n\tt = t + 1\nif t % 2 == 1:\n\tprint('Vladik')\nelse:\n\tprint('Valera')\n"]

difficulty: EASY

source: codeforces

raw_problem:
A. Vladik and Courtesy

time limit per test
2 seconds

memory limit per test
256 megabytes

input
standard input

output
standard output

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 ≤ 109) — 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:

Illustration for second test case:

question:
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](1.png)
Illustration for second test case:
![image](2.png)

skill_types: ['Complete search']

image_tags: Table Table

data_split: test