#include <bits/stdc++.h>
int x[8], y[8];
int mycheck();
using namespace std;
int main() {
  int i, j;
  for (i = 0; i < 8; ++i) cin >> x[i] >> y[i];
  if (mycheck())
    cout << "respectable" << endl;
  else
    cout << "ugly" << endl;
  return 0;
}
int mycheck() {
  int i, j;
  for (i = 0; i < 7; ++i)
    for (j = i + 1; j < 8; ++j)
      if ((x[i] == x[j]) && (y[i] == y[j])) return 0;
  sort(&x[0], &x[8]);
  sort(&y[0], &y[8]);
  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]))
    return 0;
  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]))
    return 0;
  return 1;
}
