#include <bits/stdc++.h>
using namespace std;
int main() {
  map<int, int> xcount, ycount;
  set<pair<int, int> > v;
  for (int i = 0; i < 8; i++) {
    int x1, y1;
    cin >> x1 >> y1;
    xcount[x1]++;
    ycount[y1]++;
    pair<int, int> p;
    p.first = x1;
    p.second = y1;
    v.insert(p);
  }
  if (xcount.size() != 3 || ycount.size() != 3)
    cout << "ugly\n";
  else if (v.size() != 8)
    cout << "ugly\n";
  else {
    int x1, y1;
    map<int, int>::iterator xitr, yitr;
    xitr = xcount.begin();
    yitr = ycount.begin();
    if (xitr->second == 3 && yitr->second == 3) {
      xitr++;
      yitr++;
      if (xitr->second == 2 && yitr->second == 2) {
        xitr++;
        yitr++;
        if (xitr->second == 3 && yitr->second == 3) {
          cout << "respectable\n";
          return 0;
        }
      }
    }
    cout << "ugly\n";
  }
  return 0;
}
