#include <bits/stdc++.h>
using namespace std;
const int NUM_ROW = 15;
const int NUM_COL = 15;
int mod(int a) {
  if (a < 0) {
    return -a;
  }
  return a;
}
int cmp(const void *a, const void *b) { return (*(int *)a - *(int *)b); }
void FV(int grid[NUM_ROW][NUM_COL], int length) {
  for (int k = 0; k < length; k++) {
    for (int i = 0; i < length; i++) {
      for (int j = 0; j < length; j++) {
        if (grid[k][j] != 0 && grid[i][k] != 0)
          grid[i][j] = min(grid[i][j], grid[i][k] + grid[k][j]);
      }
    }
  }
}
void printGrid(int grid[NUM_ROW][NUM_COL], int row_length, int col_length) {
  for (int i = 0; i < row_length; i++) {
    for (int j = 0; j < col_length; j++) {
      cout << grid[i][j] << " ";
    }
    cout << endl;
  }
}
void printArr(int *arr, int length) {
  for (int i = 0; i < length; i++) {
    cout << arr[i] << " ";
  }
  cout << endl;
}
void copyGrid(int grid1[NUM_ROW][NUM_COL], int grid[NUM_ROW][NUM_COL],
              int row_length, int col_length) {
  for (int i = 0; i < row_length; i++) {
    for (int j = 0; j < col_length; j++) {
      grid1[i][j] = grid[i][j];
    }
  }
}
int main() {
  int arr1[8];
  int arr2[8];
  for (int i = 0; i < 8; i++) {
    int a, b;
    cin >> a >> b;
    arr1[i] = a;
    arr2[i] = b;
  }
  int x1, x2, x3, y1, y2, y3;
  for (int i = 0; i < 8; i++) {
    x1 = arr1[i];
    for (int j = 0; j < 8; j++) {
      x2 = arr1[j];
      for (int k = 0; k < 8; k++) {
        x3 = arr1[k];
        for (int p = 0; p < 8; p++) {
          for (int o = 0; o < 8; o++) {
            for (int u = 0; u < 8; u++) {
              y1 = arr2[p];
              y2 = arr2[o];
              y3 = arr2[u];
              if (x1 < x2 && x2 < x3 && y1 < y2 && y2 < y3) {
                bool b1, b2, b3;
                b1 = false;
                b2 = false;
                b3 = false;
                bool a, b, c;
                a = false;
                b = false;
                c = false;
                for (int m = 0; m < 8; m++) {
                  if (arr1[m] == x1 && arr2[m] == y1) {
                    a = true;
                  }
                  if (arr1[m] == x1 && arr2[m] == y2) {
                    b = true;
                  }
                  if (arr1[m] == x1 && arr2[m] == y3) {
                    c = true;
                  }
                  if (a && b && c) {
                    b1 = true;
                  }
                }
                a = false;
                b = false;
                c = false;
                for (int m = 0; m < 8; m++) {
                  if (arr1[m] == x2 && arr2[m] == y1) {
                    a = true;
                  }
                  if (arr1[m] == x2 && arr2[m] == y3) {
                    c = true;
                  }
                  if (a && c) {
                    b2 = true;
                  }
                }
                a = false;
                b = false;
                c = false;
                for (int m = 0; m < 8; m++) {
                  if (arr1[m] == x3 && arr2[m] == y1) {
                    a = true;
                  }
                  if (arr1[m] == x3 && arr2[m] == y2) {
                    b = true;
                  }
                  if (arr1[m] == x3 && arr2[m] == y3) {
                    c = true;
                  }
                  if (a && b && c) {
                    b3 = true;
                  }
                }
                if (b1 && b2 && b3) {
                  cout << "respectable";
                  return 0;
                }
              }
            }
          }
        }
      }
    }
  }
  cout << "ugly";
}
