#include <bits/stdc++.h>
using namespace std;
int main() {
  long long i, j, k, x, y, X[3], Y[3];
  bool flag;
  vector<pair<long long, long long> > vp;
  for (i = 0; i < 8; i++) {
    cin >> x >> y;
    vp.push_back(pair<long long, long long>(x, y));
  }
  sort(vp.begin(), vp.end());
  flag = true;
  if (vp[0].first != vp[1].first || vp[1].first != vp[2].first ||
      vp[0].second >= vp[1].second || vp[1].second >= vp[2].second) {
    flag = false;
  }
  if (vp[3].second >= vp[4].second) {
    flag = false;
  }
  if (vp[5].first != vp[6].first || vp[6].first != vp[7].first ||
      vp[5].second >= vp[6].second || vp[6].second >= vp[7].second) {
    flag = false;
  }
  if (vp[0].second != vp[3].second || vp[3].second != vp[5].second ||
      vp[1].second != vp[6].second || vp[2].second != vp[4].second ||
      vp[4].second != vp[7].second) {
    flag = false;
  }
  if (flag)
    cout << "respectable"
         << "\n";
  else
    cout << "ugly"
         << "\n";
  return 0;
}
