#include <bits/stdc++.h>
using namespace std;
int x2[1000001], y2[1000001], x3, y3;
int main() {
  int x[10], y[10];
  int x4[10], y4[10];
  int d[3], ff1[8], ff2[8];
  int i, i2, i3, i4, k;
  int m;
  while (~scanf("%d %d", &x[0], &y[0])) {
    memset(x2, 0, sizeof(x2));
    memset(y2, 0, sizeof(y2));
    memset(x4, -1, sizeof(x4));
    memset(y4, -1, sizeof(y4));
    memset(d, -1, sizeof(d));
    x4[0] = x[0];
    y4[0] = y[0];
    x3 = 1;
    y3 = 1;
    m = 0;
    x2[x[0]] = 1;
    y2[y[0]] = 1;
    ff1[0] = x[0];
    ff2[0] = y[0];
    for (i = 1; i <= 7; i++) {
      scanf("%d %d", &x[i], &y[i]);
      ff1[i] = x[i];
      ff2[i] = y[i];
      if (x2[x[i]] == 0) x3++;
      if (y2[y[i]] == 0) y3++;
      x2[x[i]] = 1;
      y2[y[i]] = 1;
    }
    for (i = 0; i < 8; i++) {
      for (i2 = i + 1; i2 < 8; i2++) {
        if (ff1[i] == x[i2] && ff2[i] == y[i2]) {
          m = 1;
          break;
        }
      }
      if (m == 1) break;
    }
    if ((x3 != 3 || y3 != 3) || (m == 1)) {
      printf("ugly\n");
      continue;
    }
    i2 = 0;
    i3 = 0;
    i4 = 0;
    for (i = 0; i <= 1000000; i++) {
      if (x2[i] == 1) {
        for (k = 0; k < 3; k++) {
          if (x4[k] == -1) {
            x4[i2] = i;
            i2++;
            break;
          }
        }
      }
      if (y2[i] == 1) {
        for (k = 0; k < 3; k++) {
          if (y4[k] == -1) {
            y4[i3] = i;
            i3++;
            break;
          }
        }
      }
    }
    sort(x4, x4 + 3);
    sort(y4, y4 + 3);
    for (i = 0; i < 8; i++) {
      if (x[i] == x4[1] && y[i] == y4[1]) {
        printf("ugly\n");
        m = 1;
        break;
      }
    }
    if (m == 1) continue;
    printf("respectable\n");
  }
  return 0;
}
