#include <bits/stdc++.h>
using namespace std;
set<int> x, y;
vector<pair<int, int> > v;
int main() {
  ios_base::sync_with_stdio(0);
  for (int i = 0; i < 8; i++) {
    int a, b;
    cin >> a >> b;
    x.insert(a);
    y.insert(b);
    v.push_back({a, b});
  }
  if (x.size() != 3 or y.size() != 3) {
    cout << "ugly\n";
    return 0;
  }
  sort(v.begin(), v.end());
  auto it1 = x.begin(), it2 = y.begin();
  int x1 = *it1;
  it1++;
  int x2 = *it1;
  it1++;
  int x3 = *it1;
  int y1 = *it2;
  it2++;
  int y2 = *it2;
  it2++;
  int y3 = *it2;
  ;
  if ((v[0].first != x1 or v[0].second != y1) or
      (v[1].first != x1 or v[1].second != y2) or
      (v[2].first != x1 or v[2].second != y3) or
      (v[3].first != x2 or v[3].second != y1) or
      (v[4].first != x2 or v[4].second != y3) or
      (v[5].first != x3 or v[5].second != y1) or
      (v[6].first != x3 or v[6].second != y2) or
      (v[7].first != x3 or v[7].second != y3)) {
    cout << "ugly\n";
    return 0;
  }
  cout << "respectable\n";
  return 0;
}
