#include <bits/stdc++.h>
const int Mod = 1000000007;
const double eps = 1e-8;
const long long inf = 1e18;
const int inf1 = 1e9;
const int N = 100005;
using namespace std;
int a[8], b[8];
int main() {
  long long i, j;
  for (i = 0; i < 8; ++i) cin >> a[i] >> b[i];
  for (i = 0; i < 8; ++i)
    for (j = i + 1; j < 8; ++j)
      if (a[i] == a[j] && b[i] == b[j]) {
        cout << "ugly\n";
        return 0;
      }
  sort(a, a + 8);
  sort(b, b + 8);
  if (a[0] == a[1] && a[1] == a[2] && a[3] == a[4] && a[5] == a[6] &&
      a[6] == a[7] && b[0] == b[1] && b[1] == b[2] && b[3] == b[4] &&
      b[5] == b[6] && b[6] == b[7] && a[0] != a[7] && b[0] != b[7])
    cout << "respectable" << endl;
  else
    cout << "ugly" << endl;
  return 0;
}
