#include <bits/stdc++.h>
using namespace std;
struct point {
  int x, y;
  friend bool operator<(point a, point b) {
    return a.x == b.x ? a.y < b.y : a.x < b.x;
  }
};
point p[9], a[9];
int main(int argc, char *argv[]) {
  for (int i = 1; i <= 8; i++) scanf("%d%d", &p[i].x, &p[i].y);
  sort(p + 1, p + 9);
  for (int i = 1; i < 8; i++)
    if (p[i].x == p[i + 1].x && p[i].y == p[i + 1].y) {
      printf("ugly\n");
      return 0;
    }
  if (p[1].x == p[2].x && p[2].x == p[3].x && p[4].x == p[5].x &&
      p[6].x == p[7].x && p[7].x == p[8].x && p[1].y == p[4].y &&
      p[4].y == p[6].y && p[2].y == p[7].y && p[3].y == p[5].y &&
      p[5].y == p[8].y)
    printf("respectable\n");
  else
    printf("ugly\n");
  return 0;
}
