#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
  vector<pair<int, int> > data;
  vector<int> s1, s2;
  int v1, v2;
  for (int i = 0; i < 8; ++i) {
    cin >> v1 >> v2;
    data.push_back(make_pair(v1, v2));
    bool flag = true;
    for (int i = 0; i < s1.size(); i++) {
      if (s1[i] == v1) {
        flag = false;
      }
    }
    if (flag) {
      s1.push_back(v1);
    }
    flag = true;
    for (int i = 0; i < s2.size(); ++i) {
      if (s2[i] == v2) {
        flag = false;
      }
    }
    if (flag) {
      s2.push_back(v2);
    }
  }
  sort(data.begin(), data.end());
  sort(s1.begin(), s1.end());
  sort(s2.begin(), s2.end());
  if (s1.size() != s2.size() || s1.size() != 3) {
    cout << "ugly" << endl;
  } else {
    vector<pair<int, int> > temp;
    for (int i = 0; i < 3; i++) {
      for (int j = 0; j < 3; ++j) {
        if (i != 1 || j != 1) {
          temp.push_back(make_pair(s1[i], s2[j]));
        }
      }
    }
    bool flag = true;
    for (int i = 0; i < 8; i++) {
      if (data[i] != temp[i]) {
        flag = false;
        break;
      }
    }
    cout << (flag ? "respectable" : "ugly") << endl;
  }
  return EXIT_SUCCESS;
}
