#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
const long double EPS = 1e-8;
int main(int argc, char* argv[]) {
  int n = 8;
  vector<int> x(n), y(n);
  for (int i = 0; i < n; i++) cin >> x[i] >> y[i];
  set<int> X, Y;
  for (int i = 0; i < n; i++) {
    X.insert(x[i]);
    Y.insert(y[i]);
  }
  if (X.size() != 3 || Y.size() != 3) {
    cout << "ugly" << endl;
    return 0;
  }
  int temp = 0;
  for (auto xi = X.begin(); xi != X.end(); xi++)
    for (auto yi = Y.begin(); yi != Y.end(); yi++) {
      temp++;
      int count = 0;
      for (int i = 0; i < n; i++)
        if (x[i] == *xi && y[i] == *yi) count++;
      if ((temp != 5 && count != 1) || (temp == 5 && count > 0)) {
        cout << "ugly" << endl;
        return 0;
      }
    }
  cout << "respectable" << endl;
  return 0;
}
