#include <bits/stdc++.h>
using namespace std;
vector<int> ChangeToVector(const set<int>& s) {
  vector<int> ans;
  for (set<int>::const_iterator i = s.begin(); i != s.end(); ++i) {
    ans.push_back(*i);
  }
  return ans;
}
class Point {
 public:
  int x;
  int y;
  Point() {}
  Point(int _x, int _y) : x(_x), y(_y) {}
  friend bool operator<(const Point& a, const Point& b) {
    if (a.x < b.x) {
      return true;
    } else if (a.x == b.x && a.y < b.y) {
      return true;
    } else {
      return false;
    }
  }
  friend bool operator==(const Point& a, const Point& b) {
    return ((a.x == b.x) && (a.y == b.y));
  }
};
int main() {
  set<Point> pSet;
  set<int> x;
  set<int> y;
  for (int i = 0; i < 8; ++i) {
    int _x;
    int _y;
    cin >> _x >> _y;
    pSet.insert(Point(_x, _y));
    x.insert(_x);
    y.insert(_y);
  }
  if ((int)x.size() == 3 && (int)y.size() == 3) {
    vector<int> _x = ChangeToVector(x);
    vector<int> _y = ChangeToVector(y);
    set<Point> buf;
    for (int i = 0; i < 3; ++i) {
      for (int j = 0; j < 3; ++j) {
        if (i != 1 || j != 1) {
          buf.insert(Point(_x[i], _y[j]));
        }
      }
    }
    if (pSet == buf) {
      cout << "respectable" << endl;
      return 0;
    }
  }
  cout << "ugly" << endl;
  return 0;
}
