#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[8], b[8];
  bool aa[1000001], bb[1000001];
  for (int i = 0; i < 1000001; i++) {
    aa[i] = false;
    bb[i] = false;
  }
  for (int i = 0; i < 8; i++) {
    cin >> a[i] >> b[i];
    aa[a[i]] = true;
    bb[b[i]] = true;
  }
  int countera = 0, counterb = 0, x, y;
  for (int i = 0; i < 1000001; i++) {
    if (aa[i] == true) {
      countera++;
      if (countera == 2) x = i;
    }
    if (bb[i] == true) {
      counterb++;
      if (counterb == 2) y = i;
    }
  }
  if (countera != 3 || counterb != 3) {
    cout << "ugly" << endl;
    return 0;
  }
  for (int i = 0; i < 8; i++) {
    if (a[i] == x && b[i] == y) {
      cout << "ugly" << endl;
      return 0;
    }
  }
  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" << endl;
        return 0;
      }
    }
  }
  cout << "respectable" << endl;
}
