#include <bits/stdc++.h>
using namespace std;
long long n, res;
string s[] = {"LOL", "tolik", "bolik"};
long long f(long long x) {
  long long a[] = {x, 1, x + 1, 0};
  return a[x % 4];
}
int main() {
  cin >> n;
  for (long long i = 1, x, y; i <= n; i++) {
    cin >> x >> y;
    res ^= f(y + x - 1) ^ f(x - 1);
  }
  if (res == 0)
    cout << s[2];
  else
    cout << s[1];
  return 0;
}
