#include <bits/stdc++.h>
using namespace std;
struct vec {
  int x, y;
  vec() {}
  vec(int _x, int _y) {
    x = _x;
    y = _y;
  }
  void read() { scanf("%d%d", &x, &y); }
  bool operator<(const vec &other) const {
    return x < other.x || (x == other.x && y < other.y);
  }
};
vector<vec> a;
void bad() {
  printf("ugly");
  exit(0);
}
int main() {
  a.resize(8);
  for (int i = 0; i < a.size(); ++i) {
    a[i].read();
  }
  sort(a.begin(), a.end());
  if (a[0].x != a[1].x || a[1].x != a[2].x) bad();
  if (a[3].x != a[4].x) bad();
  if (a[5].x != a[6].x || a[6].x != a[7].x) bad();
  if (a[0].y != a[3].y || a[3].y != a[5].y) bad();
  if (a[1].y != a[6].y) bad();
  if (a[2].y != a[4].y || a[4].y != a[7].y) bad();
  if (a[0].x == a[3].x || a[3].x == a[5].x) bad();
  if (a[0].y == a[1].y || a[1].y == a[2].y) bad();
  printf("respectable");
}
