#include <bits/stdc++.h>
using namespace std;
int main() {
  int x[8], y[8];
  for (int i = 0; i < 8; i++) {
    cin >> x[i] >> y[i];
  }
  bool respectable = true;
  for (int i = 0; i < 8; i++) {
    for (int j = 7; j > i; j--) {
      if (x[j] < x[j - 1]) {
        swap(x[j], x[j - 1]);
        swap(y[j], y[j - 1]);
      }
    }
  }
  if (!(x[0] == x[1] && x[1] == x[2] && x[2] != x[3] && x[3] == x[4] &&
        x[4] != x[5] && x[5] == x[6] && x[6] == x[7])) {
    respectable = false;
  }
  for (int i = 0; i < 8; i++) {
    for (int j = 7; j > i; j--) {
      if (y[j] < y[j - 1]) {
        swap(x[j], x[j - 1]);
        swap(y[j], y[j - 1]);
      }
    }
  }
  if (!(y[0] == y[1] && y[1] == y[2] && y[2] != y[3] && y[3] == y[4] &&
        y[4] != y[5] && y[5] == y[6] && y[6] == y[7])) {
    respectable = false;
  }
  for (int i = 0; i < 8; i++) {
    for (int j = i + 1; j < 8; j++) {
      if (x[i] == x[j] && y[i] == y[j]) {
        respectable = false;
      }
    }
  }
  if (respectable) {
    cout << "respectable" << endl;
  } else {
    cout << "ugly" << endl;
  }
  return 0;
}
