#include <bits/stdc++.h>
using namespace std;
const int NR = 1e5 + 5;
ifstream in("date.in");
ofstream out("date.out");
int n, v[NR], k;
map<pair<int, int>, int> m;
set<int> second, p;
int cnt_s, cnt_p;
int main() {
  int x, y, i;
  for (i = 1; i <= 8; ++i) {
    cin >> x >> y;
    m[{x, y}] = 1;
    second.insert(x);
    p.insert(y);
  }
  set<int>::iterator it1, it2;
  if (second.size() != 3 || p.size() != 3) return cout << "ugly", 0;
  cnt_s = 0;
  for (it1 = second.begin(); it1 != second.end(); ++it1) {
    cnt_s++;
    cnt_p = 0;
    for (it2 = p.begin(); it2 != p.end(); ++it2) {
      cnt_p++;
      if (cnt_p == 2 && cnt_s == 2) {
        if (m[{*it1, *it2}] == 0)
          continue;
        else
          return cout << "ugly", 0;
      }
      if (m[{*it1, *it2}] == 1)
        continue;
      else
        return cout << "ugly", 0;
    }
  }
  cout << "respectable";
}
