#include <bits/stdc++.h>
using std::clog;
using std::endl;
using std::istream;
using std::ostream;
using std::sort;
namespace {
struct Pt {
  int x, y;
  inline explicit Pt(int xx, int yy) : x(xx), y(yy) {}
  inline Pt(void) {}
  inline void show(ostream& o) const { o << "Pt(" << x << ", " << y << ")"; }
};
}  // namespace
static inline ostream& operator<<(ostream& out, const Pt& pt) {
  pt.show(out);
  return out;
}
static Pt points[8];
template <typename T>
static inline void assign_minmidmax(T& min, T& mid, T& max, T new_value) {
  const bool first = (min > max);
  if (first) {
    min = mid = max = new_value;
    return;
  }
  if (new_value < min) {
    mid = min;
    min = new_value;
    return;
  }
  if (new_value > max) {
    mid = max;
    max = new_value;
    return;
  }
  if (new_value == max || new_value == min) return;
  mid = new_value;
}
static inline bool absent(int xx, int yy) {
  for (int pi = 0; pi < 8; ++pi) {
    const Pt& pt = points[pi];
    if (pt.x == xx && pt.y == yy) return false;
  }
  return true;
}
static bool solve(istream& in) {
  Pt min(((int)1e6) + 1, ((int)1e6) + 1);
  Pt mid(-1, -1);
  Pt max(-1, -1);
  for (int pi = 0; pi < 8; ++pi) {
    clog << "pi = " << pi << "." << endl;
    Pt& pt = points[pi];
    in >> pt.x >> pt.y;
    assign_minmidmax(min.x, mid.x, max.x, pt.x);
    assign_minmidmax(min.y, mid.y, max.y, pt.y);
    clog << "\t"
            "min = "
         << min << "." << endl;
    clog << "\t"
            "mid = "
         << mid << "." << endl;
    clog << "\t"
            "max = "
         << max << "." << endl;
    clog << endl;
  }
  clog << "min = " << min << "." << endl;
  clog << "mid = " << mid << "." << endl;
  clog << "max = " << max << "." << endl;
  if (mid.x <= min.x || mid.x >= max.x) return false;
  if (mid.y <= min.y || mid.y >= max.y) return false;
  if (absent(min.x, max.y)) return false;
  if (absent(mid.x, max.y)) return false;
  if (absent(max.x, max.y)) return false;
  if (absent(min.x, mid.y)) return false;
  if (absent(max.x, mid.y)) return false;
  if (absent(min.x, min.y)) return false;
  if (absent(mid.x, min.y)) return false;
  if (absent(max.x, min.y)) return false;
  return true;
}
int main(void) {
  using std::cin;
  using std::cout;
  std::ios_base::sync_with_stdio(false);
  cin.tie(0);
  std::cout << (solve(cin) ? "respectable" : "ugly") << endl;
  return 0;
}
