#include <bits/stdc++.h>
using namespace std;
set<int> s1, s2;
set<int>::iterator it;
pair<int, int> p[8];
int a[3], b[3];
int main() {
  for (int i = 0; i < 8; i++) {
    cin >> p[i].first >> p[i].second;
    s1.insert(p[i].first);
    s2.insert(p[i].second);
  }
  if (s1.size() != 3 || s2.size() != 3) {
    cout << "ugly" << endl;
    return 0;
  }
  int t = 0;
  for (it = s1.begin(); it != s1.end(); it++) a[t++] = *it;
  t = 0;
  for (it = s2.begin(); it != s2.end(); it++) b[t++] = *it;
  for (int i = 0; i < 3; i++)
    for (int j = 0; j < 3; j++) {
      bool c = false;
      if (i == 1 && j == 1) c = true;
      for (int k = 0; k < 8; k++)
        if (p[k].first == a[i] && p[k].second == b[j]) {
          if (i == 1 && j == 1) {
            cout << "ugly" << endl;
            return 0;
          }
          c = true;
          break;
        }
      if (!c) {
        cout << "ugly" << endl;
        return 0;
      }
    }
  cout << "respectable" << endl;
  return 0;
}
