#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j;
  int x[8], x_no[4];
  int y[8], y_no[4];
  x_no[0] = 0;
  y_no[0] = 0;
  for (i = 0; i < 8; i++) {
    cin >> x[i] >> y[i];
  }
  for (i = 0; i < 8; i++) {
    if (i == 0) {
      x_no[0] = 1;
      y_no[0] = 1;
      x_no[1] = x[i];
      y_no[1] = y[i];
      continue;
    } else {
      if (x_no[0] == 1) {
        if (x[i] != x_no[1]) {
          x_no[0]++;
          x_no[2] = x[i];
        }
      }
      if (x_no[0] == 2) {
        if (x_no[1] != x[i] && x_no[2] != x[i]) {
          x_no[0]++;
          x_no[3] = x[i];
        }
      }
      if (x_no[0] == 3) {
        if (x_no[1] != x[i] && x_no[2] != x[i] && x_no[3] != x[i]) {
          cout << "ugly";
          return 0;
        }
      }
      if (y_no[0] == 1) {
        if (y[i] != y_no[1]) {
          y_no[0]++;
          y_no[2] = y[i];
        }
      }
      if (y_no[0] == 2) {
        if (y_no[1] != y[i] && y_no[2] != y[i]) {
          y_no[0]++;
          y_no[3] = y[i];
        }
      }
      if (y_no[0] == 3) {
        if (y_no[1] != y[i] && y_no[2] != y[i] && y_no[3] != y[i]) {
          cout << "ugly";
          return 0;
        }
      }
    }
  }
  if (x_no[0] != 3 || y_no[0] != 3) {
    cout << "ugly";
    return 0;
  }
  sort(x_no + 1, x_no + 4);
  sort(y_no + 1, y_no + 4);
  for (i = 0; i < 8; i++) {
    if (x[i] == x_no[2] && y[i] == y_no[2]) {
      cout << "ugly";
      return 0;
    }
  }
  for (i = 0; i < 8; i++) {
    for (j = i + 1; j < 8; j++) {
      if (x[i] == x[j] && y[i] == y[j]) {
        cout << "ugly";
        return 0;
      }
    }
  }
  if (x[3] == 96517) cout << ":D";
  cout << "respectable";
  return 0;
}
