#include <bits/stdc++.h>
using namespace std;
bool poX(pair<int, int> a, pair<int, int> b) { return a.first < b.first; }
bool poY(pair<int, int> a, pair<int, int> b) { return a.second < b.second; }
int main() {
  vector<pair<int, int> > v(9);
  for (int i = 1; i <= 8; ++i) {
    pair<int, int> p;
    cin >> p.first >> p.second;
    v[i] = p;
  }
  sort(v.begin() + 1, v.end(), poX);
  sort(v.begin() + 1, v.begin() + 4, poY);
  sort(v.begin() + 4, v.begin() + 6, poY);
  sort(v.begin() + 6, v.end(), poY);
  bool p = true;
  if (v[1].first == v[2].first && v[2].first == v[3].first &&
      v[4].first == v[5].first && v[6].first == v[7].first &&
      v[7].first == v[8].first && v[1].second == v[6].second &&
      v[2].second == v[7].second && v[3].second == v[8].second &&
      v[1].second == v[4].second && v[3].second == v[5].second &&
      v[1] != v[2] && v[1] != v[3] && v[2] != v[3])
    cout << "respectable";
  else
    cout << "ugly";
  return 0;
}
