#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int x, y;
  vector<pair<long long int, long long int> > v;
  for (long long int i = 0; i < 8; i++) {
    cin >> x >> y;
    v.push_back(make_pair(x, y));
  }
  sort(v.begin(), v.end());
  bool flag = true;
  if (v[0].first != v[1].first || v[0].first != v[2].first ||
      v[1].first != v[2].first || v[3].first != v[4].first ||
      v[5].first != v[6].first || v[5].first != v[7].first ||
      v[6].first != v[7].first)
    flag = false;
  if (v[0].second == v[1].second || v[0].second == v[2].second ||
      v[1].second == v[2].second || v[3].second == v[4].second ||
      v[5].second == v[6].second || v[5].second == v[7].second ||
      v[6].second == v[7].second)
    flag = false;
  if (v[0].second != v[5].second || v[1].second != v[6].second ||
      v[2].second != v[7].second)
    flag = false;
  if (v[0].second != v[3].second || v[2].second != v[4].second) flag = false;
  if (flag)
    cout << "respectable" << endl;
  else
    cout << "ugly" << endl;
}
