#include <bits/stdc++.h>
using namespace std;
int main() {
  set<int> a, b;
  set<pair<int, int>> point;
  for (int i = 0; i < 8; i++) {
    int x, y;
    cin >> x >> y;
    a.insert(x);
    b.insert(y);
    point.insert({x, y});
  }
  if (a.size() == 3 && b.size() == 3 && point.size() == 8) {
    int ita = *(++a.begin());
    int itb = *(++b.begin());
    if (point.count({ita, itb}) == 0)
      cout << "respectable";
    else
      cout << "ugly";
  } else
    cout << "ugly";
}
