#include <bits/stdc++.h>
using namespace std;
struct point {
  int x, y;
};
bool point_comparison(const point &a, const point &b) { return a.x < b.x; }
bool second_comparison(const point &a, const point &b) { return a.y < b.y; }
int main() {
  vector<point> points;
  for (int i = 0; i < 8; i++) {
    int j, k;
    scanf("%d%d", &j, &k);
    point temp;
    temp.x = j;
    temp.y = k;
    points.push_back(temp);
  }
  sort(points.begin(), points.end(), point_comparison);
  sort(points.begin(), points.begin() + 3, second_comparison);
  sort(points.begin() + 3, points.begin() + 5, second_comparison);
  sort(points.begin() + 5, points.begin() + 8, second_comparison);
  bool r = 0;
  if (points[0].x != points[3].x && points[0].x != points[5].x &&
      points[3].x != points[5].x) {
    int x1 = points[0].x, x2 = points[3].x, x3 = points[5].x;
    if (points[1].x == x1 && points[2].x == x1 && points[4].x == x2 &&
        points[6].x == x3 && points[7].x == x3) {
      if (points[0].y != points[1].y && points[0].y != points[2].y &&
          points[1].y != points[2].y) {
        int y1 = points[0].y, y2 = points[1].y, y3 = points[2].y;
        if (points[3].y == y1 && points[4].y == y3 && points[5].y == y1 &&
            points[6].y == y2 && points[7].y == y3)
          r = 1;
      }
    }
  }
  if (!r)
    printf("ugly\n");
  else
    printf("respectable\n");
  return 0;
}
