#include <bits/stdc++.h>
using namespace std;
struct P {
  int x, y;
  friend bool operator<(const P a, P b) {
    if (a.y != b.y) {
      if (a.y < b.y) return 1;
      return 0;
    } else {
      if (a.x < b.x) return 1;
      return 0;
    }
  }
} point[100];
int main() {
  while (~scanf("%d%d", &point[0].x, &point[0].y)) {
    for (int i = 1; i < 8; i++) scanf("%d%d", &point[i].x, &point[i].y);
    sort(point, point + 8);
    int flag1 = 0;
    int flag2 = 0;
    int flag3 = 0;
    int flag4 = 0;
    if (point[0].y == point[1].y && point[1].y == point[2].y) {
      if (point[0].x < point[1].x && point[1].x < point[2].x) {
        flag1++;
      }
    }
    if (point[3].y == point[4].y) {
      if (point[3].x == point[0].x && point[4].x == point[2].x) {
        flag2++;
      }
    }
    if (point[5].y == point[6].y && point[6].y == point[7].y) {
      if (point[5].x == point[0].x && point[6].x == point[1].x &&
          point[7].x == point[2].x) {
        flag3++;
      }
    }
    if (point[0].y < point[3].y && point[3].y < point[5].y) {
      flag4++;
    }
    int ans = flag1 & flag2 & flag3 & flag4;
    if (ans) {
      puts("respectable");
    } else {
      puts("ugly");
    }
  }
  return 0;
}
