#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[10], b[10];
  vector<pair<int, int> > v;
  vector<int> va, vb;
  set<int> sa, sb;
  set<int>::iterator it;
  for (int i = 0; i < 8; i++) {
    cin >> a[i] >> b[i];
    v.push_back(make_pair(a[i], b[i]));
    sa.insert(a[i]);
    sb.insert(b[i]);
  }
  if (sa.size() != 3 || sb.size() != 3) {
    cout << "ugly" << endl;
    return 0;
  }
  for (it = sa.begin(); it != sa.end(); it++) {
    va.push_back((*it));
  }
  for (it = sb.begin(); it != sb.end(); it++) {
    vb.push_back((*it));
  }
  sort(v.begin(), v.end());
  for (int i = 0; i < 7; i++) {
    if (v[i].first == v[i + 1].first && v[i].second == v[i + 1].second) {
      cout << "ugly" << endl;
      return 0;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (v[i].first == va[1] && v[i].second == vb[1]) {
      cout << "ugly" << endl;
      return 0;
    }
  }
  cout << "respectable" << endl;
}
