#include <bits/stdc++.h>
using namespace std;
int ax[8];
int ay[8];
int vx[3];
int vy[3];
set<int> xs;
set<int> ys;
int main(int argc, char *argv[]) {
  int x, y;
  for (int i = 0; i < 8; i += 1) {
    scanf("%d %d", &x, &y);
    ax[i] = x;
    ay[i] = y;
    xs.insert(x);
    ys.insert(y);
  }
  if (xs.size() != 3 || ys.size() != 3) {
    puts("ugly");
    return 0;
  }
  copy(xs.begin(), xs.end(), vx);
  copy(ys.begin(), ys.end(), vy);
  for (int i = 0; i < 3; i += 1) {
    for (int j = 0; j < 3; j += 1) {
      if (i != 1 || j != 1) {
        int k;
        for (k = 0; k < 8; k += 1) {
          if (ax[k] == vx[i] && ay[k] == vy[j]) {
            break;
          }
        }
        if (k == 8) {
          puts("ugly");
          return 0;
        }
      }
    }
  }
  puts("respectable");
  return 0;
}
