#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n = 8;
  set<int> x, y;
  set<pair<int, int>> q;
  for (int i = 0, a, b; i < n; ++i) {
    cin >> a >> b;
    q.insert(make_pair(a, b));
    x.insert(a), y.insert(b);
  }
  bool f = true;
  for (auto &i : x) {
    for (auto &j : y) {
      if (!(q.find(make_pair(i, j)) != q.end() ||
            *(++x.begin()) == i && *(++y.begin()) == j))
        f = false;
    }
  }
  auto r = ((x.size() == 3 && y.size() == 3 && f) ? "respectable" : "ugly");
  cout << r;
  return 0;
}
