#include <bits/stdc++.h>
using namespace std;
const int __SIZE = 1 << 18;
char ibuf[__SIZE], *iS, *iT;
template <typename T>
inline void read(T &x) {
  char ch, t = 0;
  x = 0;
  while (!isdigit(ch = (iS == iT
                            ? (iT = (iS = ibuf) + fread(ibuf, 1, __SIZE, stdin),
                               (iS == iT ? EOF : *iS++))
                            : *iS++)))
    t |= ch == '-';
  while (isdigit(ch))
    x = x * 10 + (ch ^ 48),
    ch = (iS == iT ? (iT = (iS = ibuf) + fread(ibuf, 1, __SIZE, stdin),
                      (iS == iT ? EOF : *iS++))
                   : *iS++);
  x = t ? -x : x;
}
inline char read_alpha() {
  char c = (iS == iT ? (iT = (iS = ibuf) + fread(ibuf, 1, __SIZE, stdin),
                        (iS == iT ? EOF : *iS++))
                     : *iS++);
  while (!isalpha(c) && c != EOF)
    c = (iS == iT ? (iT = (iS = ibuf) + fread(ibuf, 1, __SIZE, stdin),
                     (iS == iT ? EOF : *iS++))
                  : *iS++);
  return c;
}
inline int read_int() {
  int x;
  return read(x), x;
}
inline long long read_ll() {
  long long x;
  return read(x), x;
}
template <typename T>
inline void chkmin(T &a, T b) {
  a = a < b ? a : b;
}
template <typename T>
inline void chkmax(T &a, T b) {
  a = a > b ? a : b;
}
const int MAXN = 200010;
vector<int> to[MAXN];
vector<int> h[MAXN];
vector<int> l[MAXN];
int col[MAXN];
inline void AddEdge(int u, int v) {
  to[u].push_back(v);
  to[v].push_back(u);
}
inline void Col(int x, int c) {
  col[x] = c;
  for (auto u : to[x])
    if (col[u] == -1)
      Col(u, c ^ 1);
    else
      assert(col[u] == c ^ 1);
}
int main() {
  int n = read_int();
  for (int i = 1; i <= n; i++) {
    int x = read_int(), y = read_int();
    h[x].push_back(i);
    l[y].push_back(i);
  }
  for (int i = 1; i <= 200000; i++) {
    for (int j = 1; j < h[i].size(); j += 2) AddEdge(h[i][j - 1], h[i][j]);
    for (int j = 1; j < l[i].size(); j += 2) AddEdge(l[i][j - 1], l[i][j]);
  }
  memset(col, -1, sizeof(col));
  for (int i = 1; i <= n; i++)
    if (col[i] == -1) Col(i, 1);
  for (int i = 1; i <= n; i++) putchar(col[i] ? 'b' : 'r');
  return 0;
}
