#include <bits/stdc++.h>   using namespace std;   long long range(long long L) {     switch (L & 3) {       case 0:         return L;       case 1:         return 1;       case 2:         return L + 1;       case 3:         return 0;     }   }   int main() {     for (int N; cin >> N;) {       long long sum = 0;       for (int i = 0; i < (int)(N); ++i) {         long long m, x;         cin >> x >> m;         long long b = range(x - 1);         long long a = range(x + m - 1);         sum ^= b;         sum ^= a;       }       if (sum == 0)         cout <<  bolik  << endl;       else         cout <<  tolik  << endl;     }     return 0;   }   