#include <bits/stdc++.h>
using namespace std;
struct diem {
  long x, y;
};
bool cmp(diem a, diem b) {
  if (a.y != b.y)
    return a.y < b.y;
  else
    return a.x < b.x;
}
int main() {
  diem *a = new diem[8];
  for (int i = 0; i < 8; i++) cin >> a[i].y >> a[i].x;
  for (int i = 0; i < 8; i++)
    for (int j = i + 1; j < 8; j++)
      if (a[i].x == a[j].x && a[i].y == a[j].y) {
        cout << "ugly";
        delete[] a;
        return 0;
      }
  sort(a, a + 8, cmp);
  if (a[0].x != a[3].x || a[0].x != a[5].x || a[0].y != a[1].y ||
      a[0].y != a[2].y || a[3].y != a[4].y || a[1].x != a[6].x ||
      a[2].x != a[4].x || a[2].x != a[7].x || a[5].y != a[6].y ||
      a[5].y != a[7].y)
    cout << "ugly";
  else
    cout << "respectable";
  delete[] a;
}
