#include <bits/stdc++.h>
using namespace std;
const int PRIME = 1000 * 1000 * 1000 + 7;
const int MULTIPLIER = 173;
const int INFI = 1 << 30;
const long double INF = 2 * 10e9 + 1;
const long double EPS = 1e-9;
const long double PI = M_PI;
const int DIM = 2;
int main() {
  ios_base::sync_with_stdio(0);
  int x[8];
  int y[8];
  set<int> sx;
  set<int> sy;
  set<pair<int, int> > ps;
  for (int i = 0; i < (int)8; ++i) {
    cin >> x[i] >> y[i];
    sx.insert(x[i]);
    sy.insert(y[i]);
    ps.insert(make_pair(x[i], y[i]));
  }
  if (sx.size() != 3 || sy.size() != 3)
    cout << "ugly";
  else {
    int i = 0;
    for (set<int>::iterator it = sx.begin(); it != sx.end(); ++it) {
      int j = 0;
      for (set<int>::iterator jt = sy.begin(); jt != sy.end(); ++jt) {
        if (i != 1 || j != 1) {
          if (ps.find(make_pair(*it, *jt)) == ps.end()) {
            cout << "ugly";
            return 0;
          }
        }
        ++j;
      }
      ++i;
    }
    cout << "respectable";
  }
  return 0;
}
