#include <bits/stdc++.h>
using namespace std;
const int inf = 0x3f3f3f3f;
const int maxn = 5e3 + 5;
const int mod = 1e9 + 7;
const double eps = 1e-9;
long long judge(long long x) {
  if (x % 4 == 0) return x;
  if (x % 4 == 1) return 1;
  if (x % 4 == 2) return x + 1;
  if (x % 4 == 3) return 0;
}
int main() {
  int n;
  long long a, b;
  cin >> n;
  long long ans = 0;
  while (n--) {
    cin >> a >> b;
    ans ^= judge(a - 1) ^ judge(a + b - 1);
  }
  if (!ans)
    puts("bolik");
  else
    puts("tolik");
  return 0;
}
