#include <bits/stdc++.h>
using namespace std;
mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count());
const long long maxn = 3e5 + 123;
const long long inf = 1e9 + 123;
const long long linf = 1e18 + 123;
const long long mod = 1e9 + 7;
const double eps = 1e-9;
const double pi = acos(-1);
int dx[8] = {0, 1, -1, 0, 1, -1, 1, -1};
int dy[8] = {1, 0, 0, -1, 1, 1, -1, -1};
long long f(long long x) {
  if (x % 4 == 0) {
    return x;
  }
  if (x % 4 == 1) {
    return 1;
  }
  if (x % 4 == 2) {
    return x + 1;
  }
  return 0ll;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  long long ans = 0;
  for (int i = 1; i <= n; i++) {
    long long x, k;
    cin >> x >> k;
    ans = ans ^ (f(x - 1) ^ f(x + k - 1));
  }
  if (ans == 0) {
    cout << "bolik";
  } else {
    cout << "tolik";
  }
  exit(0);
}
