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