#include <bits/stdc++.h>
using namespace std;
long x[100], y[100];
vector<long> xx, yy, dx, dy;
set<pair<long, long> > pts;
long fl;
int main() {
  ios_base::sync_with_stdio(0);
  for (int i = 0; i < 8; i++) {
    cin >> x[i] >> y[i];
    xx.push_back(x[i]);
    yy.push_back(y[i]);
    pts.insert(make_pair(x[i], y[i]));
  }
  sort(xx.begin(), xx.end());
  sort(yy.begin(), yy.end());
  for (int i = 0; i < xx.size(); i++)
    if (i == 0 || xx[i] != xx[i - 1]) dx.push_back(xx[i]);
  for (int i = 0; i < yy.size(); i++)
    if (i == 0 || yy[i] != yy[i - 1]) dy.push_back(yy[i]);
  if (dx.size() != 3 || dy.size() != 3)
    cout << "ugly" << endl;
  else {
    fl = 0;
    for (int i = 0; i < 3; i++)
      for (int j = 0; j < 3; j++)
        if (i != 1 || j != 1)
          if (pts.find(make_pair(dx[i], dy[j])) == pts.end()) {
            fl = 1;
          }
    if (fl)
      cout << "ugly" << endl;
    else
      cout << "respectable" << endl;
  }
  cin.get();
  cin.get();
  return 0;
}
