#include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;
int T;
int main(){
scanf("%d",&T);
while(T--){
int a,b;
scanf("%d%d",&a,&b);
int k = 1;
while(true){
if(a<k){
puts("Vladik");
break;
}
a -= k++;
if(b<k){
puts("Valera");
break;
}
b -= k++;
}
}
return 0;
}