#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  set<int> X, Y;
  map<pair<int, int>, int> mp;
  vector<int> v1, v2;
  for (int i = 0; i < 8; i++) {
    int x, y;
    cin >> x >> y;
    X.insert(x);
    Y.insert(y);
    mp[{x, y}] = 1;
  }
  if (X.size() != 3 || Y.size() != 3) return cout << "ugly", 0;
  int i = 0, j = 0;
  for (auto &x : X) {
    i++;
    j = 0;
    for (auto &y : Y) {
      j++;
      if (i == j && i == 2) continue;
      if (mp.find({x, y}) == mp.end()) return cout << "ugly", 0;
    }
  }
  cout << "respectable";
  return 0;
}
