#include<bits/stdc++.h>
using namespace std;
bool doixung(int a[], int n) {
int l = 0;
int r = n - 1;
while (l <= r) {
if (a[l] != a[r]) {
return false;
}
l++; r--;
}
return true;
}
int main()
{
int n;
cin>>n;
int a[n];
for(int i=0;i <n;i++){
cin>>a[i];
}
if(doixung(a,n)){
if(a[0]<a[1]) cout<<"Loi";
else cout<<"Lom";
}
else cout<<"Vo danh";
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKYm9vbCBkb2l4dW5nKGludCBhW10sIGludCBuKSB7CiAgICBpbnQgbCA9IDA7CiAgICBpbnQgciA9IG4gLSAxOwogICAgd2hpbGUgKGwgPD0gcikgewogICAgICAgIGlmIChhW2xdICE9IGFbcl0pIHsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0KICAgICAgICBsKys7IHItLTsKICAgIH0KICAgIHJldHVybiB0cnVlOwp9CgppbnQgbWFpbigpCnsKICAgIGludCBuOwogICAgY2luPj5uOwogICAgaW50IGFbbl07CiAgICBmb3IoaW50IGk9MDtpIDxuO2krKyl7CiAgICAgICAgY2luPj5hW2ldOwogICAgfQogICAgaWYoZG9peHVuZyhhLG4pKXsKICAgICAgICBpZihhWzBdPGFbMV0pIGNvdXQ8PCJMb2kiOwogICAgICAgIGVsc2UgY291dDw8IkxvbSI7CiAgICB9CiAgICBlbHNlIGNvdXQ8PCJWbyBkYW5oIjsKICAgIHJldHVybiAwOwp9Cg==