#include <bits/stdc++.h>
using namespace std;
int main() {
  set<pair<int, int> > s;
  set<int> x, y;
  for (int i = 0; i < 8; ++i) {
    int a, b;
    cin >> a >> b;
    s.insert(make_pair(a, b));
    x.insert(a);
    y.insert(b);
  }
  if (s.size() != 8) {
    cout << "ugly";
    return 0;
  }
  if (x.size() != 3 || y.size() != 3) {
    cout << "ugly";
    return 0;
  }
  int k = 0, j = 0;
  for (set<int>::iterator it = x.begin(); it != x.end(); ++it, k++) {
    j = 0;
    for (set<int>::iterator it2 = y.begin(); it2 != y.end(); ++it2, j++) {
      if (k == 1 && j == 1) continue;
      s.erase(make_pair(*it, *it2));
    }
  }
  if (s.size() == 0) {
    cout << "respectable";
  } else {
    cout << "ugly";
  }
  return 0;
}
