#include <bits/stdc++.h>
using namespace std;
const int OO = (int)2e9;
const double eps = 1e-9;
int x[3], y[3];
int main() {
  int i;
  vector<pair<int, int> > V(8);
  set<int> X;
  set<int> Y;
  for (i = 0; i < 8; i++) {
    cin >> V[i].first >> V[i].second;
    X.insert(V[i].first);
    Y.insert(V[i].second);
  }
  i = 0;
  for (__typeof((X).begin()) it = (X).begin(); it != (X).end(); ++it)
    x[i++] = *it;
  i = 0;
  for (__typeof((Y).begin()) it = (Y).begin(); it != (Y).end(); ++it)
    y[i++] = *it;
  vector<pair<int, int> > C(8);
  C[0] = make_pair(x[0], y[0]);
  C[1] = make_pair(x[0], y[1]);
  C[2] = make_pair(x[0], y[2]);
  C[3] = make_pair(x[1], y[0]);
  C[4] = make_pair(x[1], y[2]);
  C[5] = make_pair(x[2], y[0]);
  C[6] = make_pair(x[2], y[1]);
  C[7] = make_pair(x[2], y[2]);
  sort((V).begin(), (V).end());
  if (((int)(X).size()) != 3 || ((int)(Y).size()) != 3 || V != C)
    puts("ugly");
  else
    puts("respectable");
  return 0;
}
