#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const int INF = int(1e9);
int main() {
  ios_base::sync_with_stdio(false);
  set<int> x, y;
  vector<pair<int, int> > point;
  for (int i = 0; i < 8; i++) {
    int a, b;
    cin >> a >> b;
    x.insert(a);
    y.insert(b);
    point.push_back(make_pair(a, b));
  }
  if (x.size() != 3 || y.size() != 3) {
    cout << "ugly";
    return 0;
  }
  vector<int> xx(x.begin(), x.end());
  vector<int> yy(y.begin(), y.end());
  sort(xx.begin(), xx.end());
  sort(yy.begin(), yy.end());
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      if (i == 1 && j == 1) {
        continue;
      }
      if (count(point.begin(), point.end(), make_pair(xx[i], yy[j])) == 0) {
        cout << "ugly";
        return 0;
      }
    }
  }
  cout << "respectable";
  return 0;
}
