#include <bits/stdc++.h>
using namespace std;
inline int Read() {
  int x = 0, f = 1;
  char ch = getchar();
  while (!isdigit(ch)) {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (isdigit(ch)) {
    x = (x << 3) + (x << 1) + ch - '0';
    ch = getchar();
  }
  return x * f;
}
int first[1000005], nxt[1000005], to[1000005], tot;
void Add(int x, int y, int nw = 1) {
  nxt[++tot] = first[x];
  first[x] = tot;
  to[tot] = y;
  if (nw) Add(y, x, 0);
}
vector<int> h[200005], l[200005];
int n, col[200005];
void dfs(int u, int Col) {
  if (col[u]) return;
  col[u] = Col;
  for (int e = first[u]; e; e = nxt[e]) dfs(to[e], 3 - Col);
}
signed main() {
  n = Read();
  for (int i = 1; i <= n; i++) {
    int x = Read(), y = Read();
    h[x].push_back(i);
    l[y].push_back(i);
  }
  for (int i = 1; i <= 200000; i++) {
    if (h[i].size() >= 2)
      for (int j = 0; j + 1 < h[i].size(); j += 2) Add(h[i][j], h[i][j + 1]);
    if (l[i].size() >= 2)
      for (int j = 0; j + 1 < l[i].size(); j += 2) Add(l[i][j], l[i][j + 1]);
  }
  for (int i = 1; i <= n; i++)
    if (!col[i]) dfs(i, 1);
  for (int i = 1; i <= n; i++) putchar(col[i] == 1 ? 'b' : 'r');
  return 0;
}
