#include <bits/stdc++.h>
using namespace std;
int main() {
  int xi, yi, i, midx, midy, points[8][2];
  set<int> x;
  set<int> y;
  for (i = 0; i < 8; i++) {
    cin >> xi;
    cin >> yi;
    points[i][0] = xi;
    points[i][1] = yi;
    x.insert(xi);
    y.insert(yi);
    if (x.size() > 3 || y.size() > 3) {
      cout << "\nugly" << endl;
      exit(0);
    }
  }
  set<int>::iterator it = x.begin();
  advance(it, 1);
  midx = *it;
  it = y.begin();
  advance(it, 1);
  midy = *it;
  int flag = 0;
  for (i = 0; i < 8; i++) {
    if (points[i][0] == midx && points[i][1] == midy) {
      cout << "\nugly" << endl;
      flag = 1;
      exit(0);
    }
  }
  set<int>::iterator ix = x.begin();
  set<int>::iterator iy = y.begin();
  for (i = 0; i < 3; i++) {
    ix = x.begin();
    advance(ix, i);
    midx = *ix;
    for (int j = 0; j < 3; j++) {
      iy = y.begin();
      advance(iy, j);
      midy = *iy;
      if (i == 1 && j == 1)
        continue;
      else {
        flag = 0;
        for (int i1 = 0; i1 < 8; i1++) {
          if (points[i1][0] == midx && points[i1][1] == midy) flag = 1;
        }
        if (flag == 0) {
          cout << "\nugly" << endl;
          exit(0);
        }
      }
    }
  }
  cout << "\nrespectable" << endl;
  return 0;
}
