#include <bits/stdc++.h>
using namespace std;
FILE* input = fopen("input.in", "r");
FILE* out = fopen("output.out", "w");
ifstream in("in.txt");
const double pi = 3.1415926535897932384626433832795;
const double EPS = 1e-09;
vector<pair<int, int> > l;
int x, y;
void ins(int x, int y) {
  for (vector<pair<int, int> >::iterator it = l.begin(); it != l.end(); ++it) {
    if ((*it).first > x) {
      l.insert(it, make_pair(x, y));
      return;
    } else if ((*it).first == x) {
      if ((*it).second > y) {
        l.insert(it, make_pair(x, y));
        return;
      } else if ((*it).second == y) {
        return;
      }
    }
  }
  l.push_back(make_pair(x, y));
  return;
}
int main() {
  for (int i = 0; i < 8; i++) {
    scanf("%d %d", &x, &y);
    ins(x, y);
  }
  if (l.size() == 8)
    if (l[0].first == l[1].first && l[0].first == l[2].first &&
        l[3].first == l[4].first && l[5].first == l[6].first &&
        l[5].first == l[7].first)
      if (l[0].second == l[3].second && l[0].second == l[5].second &&
          l[1].second == l[6].second && l[2].second == l[4].second &&
          l[2].second == l[7].second) {
        printf("respectable\n");
        return 0;
      }
  printf("ugly\n");
  return 0;
}
