#include <bits/stdc++.h>
using namespace std;
vector<int> a;
vector<int> b;
int main() {
  for (int i = 0; i < 8; i++) {
    int temp;
    cin >> temp;
    a.push_back(temp);
    cin >> temp;
    b.push_back(temp);
  }
  for (int i = 0; i < 7; i++) {
    for (int j = i + 1; j < 8; j++) {
      if (a[i] == a[j] && b[i] == b[j]) {
        cout << "ugly";
        return 0;
      }
    }
  }
  sort(a.begin(), a.end());
  sort(b.begin(), b.end());
  if (a[0] != a[1] || a[1] != a[2] || a[3] != a[4] || a[5] != a[6] ||
      a[6] != a[7]) {
    cout << "ugly";
    return 0;
  }
  if (b[0] != b[1] || b[1] != b[2] || b[3] != b[4] || b[5] != b[6] ||
      b[6] != b[7]) {
    cout << "ugly";
    return 0;
  }
  cout << "respectable";
  return 0;
}
