#include <bits/stdc++.h>
using namespace std;
struct Point {
  int x, y;
} p[10];
bool cmp(const Point &a, const Point &b) {
  return a.x < b.x || a.x == b.x && a.y < b.y;
}
int main() {
  for (int i = 1; i <= 8; i++) {
    scanf("%d%d", &p[i].x, &p[i].y);
  }
  sort(p + 1, p + 9, cmp);
  if (p[1].x != p[2].x || p[3].x != p[2].x || p[1].x != p[3].x) goto F;
  if (p[4].x != p[5].x) goto F;
  if (p[6].x != p[7].x || p[7].x != p[8].x || p[6].x != p[8].x) goto F;
  if (p[1].y != p[4].y || p[4].y != p[6].y || p[6].y != p[1].y) goto F;
  if (p[2].y != p[7].y) goto F;
  if (p[3].y != p[5].y || p[5].y != p[8].y || p[3].y != p[8].y) goto F;
  if (p[1].y == p[2].y || p[2].y == p[3].y || p[3].y == p[1].y) goto F;
  if (p[1].x == p[4].x || p[4].x == p[6].x || p[6].x == p[1].x) goto F;
  cout << "respectable" << endl;
  return 0;
F:
  cout << "ugly" << endl;
  return 0;
}
