#include <bits/stdc++.h>
using namespace std;
int N;
long long solve(long long x) {
  long long ans = 0;
  for (; x % 4 != 3 && x; x--) {
    ans ^= x;
  }
  return ans;
}
int main() {
  if (fopen("input.txt", "r")) {
    freopen("input.txt", "r", stdin);
  }
  ios::sync_with_stdio(false);
  cin >> N;
  long long x, m, ans = 0;
  while (N--) {
    cin >> x >> m;
    ans ^= solve(x - 1) ^ solve(x + m - 1);
  }
  cout << (ans ? 't' : 'b') << "olik\n";
}
