#include <bits/stdc++.h>
using namespace std;
int x[8], y[8];
set<int> xx, yy;
bool find(int a, int b) {
  for (int i = 0; i < 8; i++)
    if (a == x[i] && b == y[i]) return 1;
  return 0;
}
int main() {
  for (int i = 0; i < 8; i++) {
    cin >> x[i] >> y[i];
    xx.insert(x[i]);
    yy.insert(y[i]);
  }
  if (xx.size() != 3 || yy.size() != 3) {
    puts("ugly");
    return 0;
  }
  int i = 0, j = 0;
  set<int>::iterator ii, jj;
  for (ii = xx.begin(); ii != xx.end(); ii++, i++, j = 0) {
    for (jj = yy.begin(); jj != yy.end(); jj++, j++) {
      if (i != 1 || j != 1) {
        if (!find(*ii, *jj)) {
          puts("ugly");
          return 0;
        }
      }
    }
  }
  puts("respectable");
  return 0;
}
