#include <bits/stdc++.h>
using namespace std;
int x[10], y[10];
int xx[10], yy[10], n;
int xxx[10], yyy[10];
int main() {
  for (int i = 0; i < 8; i++) scanf("%d%d", &x[i], &y[i]);
  for (int i = 0; i < 8; i++) xx[i] = x[i], yy[i] = y[i];
  sort(xx, xx + 8);
  sort(yy, yy + 8);
  int numx = 1, numy = 1, lx = xx[0], ly = yy[0];
  xxx[0] = xx[0], yyy[0] = yy[0];
  int midx, midy;
  for (int i = 1; i < 8; i++) {
    if (xx[i] != lx) xxx[numx] = xx[i], numx++, lx = xx[i];
    if (yy[i] != ly) yyy[numy] = yy[i], numy++, ly = yy[i];
    if (numx == 2) midx = lx;
    if (numy == 2) midy = ly;
    if (numx > 3 || numy > 3) {
      printf("ugly\n");
      return 0;
    }
  }
  if (numx != 3 || numy != 3) {
    printf("ugly\n");
    return 0;
  }
  for (int i = 0; i < 8; i++)
    if (midx == x[i] && midy == y[i]) {
      printf("ugly\n");
      return 0;
    }
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      if (i == 1 && j == 1) continue;
      int p = 0;
      for (int k = 0; k < 8; k++)
        if (xxx[i] == x[k] && yyy[j] == y[k]) {
          p = 1;
          break;
        }
      if (p == 0) {
        printf("ugly\n");
        return 0;
      }
    }
  }
  printf("respectable\n");
  return 0;
}
