#include <bits/stdc++.h>
using namespace std;
struct V {
  int x, y;
};
bool conf(V left, V right) {
  if (left.x != right.x) return left.x < right.x;
  return left.y < right.y;
}
int main() {
  V arr[9];
  for (int i = 0; i <= 7; i++) scanf("%d %d", &arr[i].x, &arr[i].y);
  sort(arr, arr + 8, conf);
  if ((arr[0].x != arr[1].x) || (arr[0].x != arr[2].x) ||
      (arr[0].x == arr[3].x) || (arr[3].x != arr[4].x) ||
      (arr[0].x == arr[5].x) || (arr[3].x == arr[5].x) ||
      (arr[5].x != arr[6].x) || (arr[5].x != arr[7].x)) {
    printf("ugly");
    return 0;
  }
  if ((arr[0].y == arr[1].y) || (arr[0].y == arr[2].y) ||
      (arr[1].y == arr[2].y) || (arr[0].y != arr[3].y) ||
      (arr[0].y != arr[5].y) || (arr[1].y != arr[6].y) ||
      (arr[2].y != arr[4].y) || (arr[2].y != arr[7].y)) {
    printf("ugly");
    return 0;
  }
  printf("respectable");
  return 0;
}
