#include <bits/stdc++.h>
using namespace std;
int i, ax[8], ay[8];
set<int> bx, by;
set<int>::iterator t1, t2;
int main() {
  for (i = 0; i < 8; i++) scanf("%d %d", ax + i, ay + i);
  for (i = 0; i < 8; i++) bx.insert(ax[i]), by.insert(ay[i]);
  bool ok = false;
  if (bx.size() == 3 && by.size() == 3) {
    ok = true;
    int i1, i2;
    for (i1 = 0, t1 = bx.begin(); t1 != bx.end(); t1++, i1++)
      for (i2 = 0, t2 = by.begin(); t2 != by.end(); t2++, i2++) {
        if (i1 == 1 && i2 == 1) continue;
        bool op = false;
        for (i = 0; i < 8; i++)
          if (*t1 == ax[i] && *t2 == ay[i]) op = true;
        if (!op) ok = false;
      }
  }
  if (ok)
    puts("respectable");
  else
    puts("ugly");
  return 0;
}
