#include <bits/stdc++.h>
using namespace std;
class C {
 public:
  int x;
  int y;
};
bool cmp(C x, C y) {
  if (x.x == y.x)
    return x.y < y.y;
  else
    return x.x < y.x;
}
int main() {
  int i, x, y;
  C arr[8];
  set<int> S1, S2;
  for (i = 0; i < 8; i++) {
    cin >> x >> y;
    arr[i].x = x;
    arr[i].y = y;
    S1.insert(x);
    S2.insert(y);
  }
  sort(arr, arr + 8, cmp);
  if (S1.size() != 3 || S2.size() != 3)
    cout << "ugly" << endl;
  else {
    if (arr[0].x == arr[1].x && arr[1].x == arr[2].x && arr[3].x == arr[4].x &&
        arr[5].x == arr[6].x && arr[6].x == arr[7].x) {
      if (arr[0].y == arr[5].y && arr[1].y == arr[6].y &&
          arr[2].y == arr[7].y && arr[0].y == arr[3].y &&
          arr[2].y == arr[4].y) {
        cout << "respectable" << endl;
      } else
        cout << "ugly" << endl;
    } else
      cout << "ugly" << endl;
  }
  return 0;
}
