#include <bits/stdc++.h>
using namespace std;
int n, col[200005], xx[200005], yy[200005];
vector<int> Ed[200005];
inline int IN() {
  char c;
  register int first = 0;
  for (; (c = getchar()) < 48 && c ^ '-' || c > 57;)
    ;
  bool f = c == '-';
  if (f) (c = getchar());
  for (; c > 47 && c < 58; (c = getchar())) first = first * 10 + c - 48;
  if (f) first = -first;
  return first;
}
void dfs(int u, int c) {
  if (~col[u]) return;
  col[u] = c;
  for (int v : Ed[u]) dfs(v, c ^ 1);
}
int main() {
  n = IN();
  for (int _r = n, i = 1; i <= _r; ++i) {
    int first = IN(), second = IN();
    if (xx[first]) {
      Ed[xx[first]].push_back(i);
      Ed[i].push_back(xx[first]);
      xx[first] = 0;
    } else
      xx[first] = i;
    if (yy[second]) {
      Ed[yy[second]].push_back(i);
      Ed[i].push_back(yy[second]);
      yy[second] = 0;
    } else
      yy[second] = i;
  }
  for (int _r = n, i = 1; i <= _r; ++i) col[i] = -1;
  for (int _r = n, i = 1; i <= _r; ++i) {
    dfs(i, 0);
    putchar(col[i] ? 'r' : 'b');
  }
}
