#include <bits/stdc++.h>
using namespace std;
bool compare(pair<long long int, long long int> a,
             pair<long long int, long long int> b) {
  return a.second < b.second;
}
int main() {
  vector<pair<long long int, long long int> > a;
  int i;
  long long int c, d;
  for (i = 0; i < 8; i++) {
    cin >> c >> d;
    a.push_back(make_pair(c, d));
  }
  sort(a.begin(), a.end());
  if (a[0].first != a[2].first || a[3].first != a[4].first ||
      a[5].first != a[7].first) {
    cout << "ugly\n";
    return 0;
  }
  sort(a.begin(), a.begin() + 3, compare);
  sort(a.begin() + 3, a.begin() + 4, compare);
  sort(a.begin() + 5, a.end(), compare);
  if ((a[0].second < a[1].second && a[0].second < a[2].second &&
       a[2].second > a[1].second) &&
      (a[3].second == a[0].second && a[4].second == a[2].second) &&
      (a[5].second == a[0].second && a[6].second == a[1].second &&
       a[7].second == a[2].second)) {
    cout << "respectable\n";
  } else
    cout << "ugly\n";
  return 0;
}
