#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:65777216")
using namespace std;
vector<pair<int, int> > a;
int a1, a2;
int binpow(int a1, int b1) {
  if (b1 == 0) {
    return 1;
  }
  if (b1 % 2 == 1) {
    return binpow(a1, b1 - 1) * a1;
  } else {
    int b = binpow(a1, b1 / 2);
    return b * b;
  }
}
int gcd(int a1, int b1) {
  if (b1 == 0)
    return a1;
  else
    return gcd(b1, a1 % b1);
}
int main() {
  bool flag = 0;
  for (int i = 0; i < 8; i++) {
    cin >> a1 >> a2;
    a.push_back(make_pair(a1, a2));
  }
  sort(a.begin(), a.end());
  for (int i = 1; i < 8; i++) {
    if (a[i] == a[i - 1]) {
      flag = 1;
      break;
    }
  }
  if ((a[0].first == a[1].first && a[1].first == a[2].first) &&
      (a[3].first == a[4].first) && (a[5].first == a[6].first) &&
      (a[6].first == a[7].first) &&
      (a[0].second == a[3].second && a[3].second == a[5].second) &&
      (a[1].second == a[6].second) && (a[2].second == a[4].second) &&
      (a[4].second == a[7].second) && flag == 0) {
    cout << "respectable";
  } else {
    cout << "ugly";
  }
}
