#include <bits/stdc++.h>
using namespace std;
struct point {
  int x;
  int y;
};
bool option(point A, point B) {
  if (A.x < B.x || (A.x == B.x && A.y < B.y)) return true;
  return false;
}
int main() {
  vector<point> pointArr;
  pointArr.resize(8);
  for (int i = 0; i < 8; i++) {
    cin >> pointArr[i].x >> pointArr[i].y;
  }
  sort(pointArr.begin(), pointArr.end(), option);
  int countx = 1;
  int county = 0;
  int x2 = 0;
  int y2 = 0;
  for (int i = 1; i < 8; i++) {
    if (pointArr[i].x != pointArr[i - 1].x) {
      countx++;
      if (countx == 2) x2 = pointArr[i].x;
    }
  }
  bool Flag = 0;
  for (int i = 0; i < 8; i++) {
    for (int j = 0; j < i; j++) {
      if (pointArr[i].y == pointArr[j].y) {
        Flag = 1;
        break;
      }
    }
    if (Flag == 0)
      county++;
    else
      Flag = 0;
    if (county == 2) y2 = pointArr[i].y;
  }
  if (countx != 3 || county != 3) {
    cout << "ugly";
    return 0;
  } else {
    for (int i = 0; i < 8; i++) {
      if (pointArr[i].x == pointArr[i - 1].x &&
          pointArr[i].y == pointArr[i - 1].y) {
        cout << "ugly";
        return 0;
      }
      if (pointArr[i].x == x2 && pointArr[i].y == y2) {
        cout << "ugly";
        return 0;
      }
    }
  }
  cout << "respectable";
  return 0;
}
