#include <bits/stdc++.h>
using namespace std;
const int N = 100010;
const int iinf = INT_MAX / 2;
const long long linf = LONG_MAX / 2;
const int MOD = 1e9 + 7;
inline int read() {
  int X = 0, w = 0;
  char ch = 0;
  while (!isdigit(ch)) {
    w |= ch == '-';
    ch = getchar();
  }
  while (isdigit(ch)) X = (X << 3) + (X << 1) + (ch ^ 48), ch = getchar();
  return w ? -X : X;
}
void write(int x) {
  if (x < 0) putchar('-'), x = -x;
  if (x > 9) write(x / 10);
  putchar(x % 10 + '0');
}
void print() {
  cout << "ugly\n";
  exit(0);
}
bool cmp(int a, int b) { return a < b; }
int x[10], y[10];
int main() {
  for (int i = 1; i <= 8; i++) scanf("%d%d", &x[i], &y[i]);
  for (int i = 1; i <= 8; i++)
    for (int j = i + 1; j <= 8; j++)
      if (x[i] == x[j] && y[i] == y[j]) print();
  sort(x + 1, x + 9, cmp);
  sort(y + 1, y + 9, cmp);
  if (x[2] == x[1] && x[3] == x[2] && x[5] == x[4] && x[8] == x[7] &&
      x[6] == x[8] && x[4] > x[1] && x[7] > x[4] && y[4] > y[3] &&
      y[6] > y[5] && y[5] == y[4] && y[1] == y[2] && y[2] == y[3] &&
      y[7] == y[8] && y[6] == y[7] && y[4] != y[2])
    cout << "respectable\n";
  else
    print();
}
