#include <bits/stdc++.h>
using namespace std;
struct P {
  int x;
  int y;
} p[10];
int main() {
  int sum1 = 0, sum2 = 0, a[10] = {0}, b[10] = {0};
  for (int i = 1; i <= 8; i++) {
    int flag;
    cin >> p[i].x;
    flag = 1;
    for (int j = 1; j <= sum1; j++)
      if (a[j] == p[i].x) flag = 0;
    if (flag) {
      sum1++;
      a[sum1] = p[i].x;
    }
    cin >> p[i].y;
    flag = 1;
    for (int j = 1; j <= sum2; j++)
      if (b[j] == p[i].y) flag = 0;
    if (flag) {
      sum2++;
      b[sum2] = p[i].y;
    }
  }
  if (sum1 != 3 || sum2 != 3)
    cout << "ugly" << endl;
  else {
    for (int i = 1; i <= 8; i++)
      for (int j = i + 1; j <= 8; j++)
        if (p[i].x == p[j].x && p[i].y == p[j].y) {
          cout << "ugly" << endl;
          return 0;
        }
    sort(a + 1, a + 4);
    sort(b + 1, b + 4);
    int flag = 1;
    for (int i = 1; i <= 8; i++)
      if (p[i].x == a[2] && p[i].y == b[2]) {
        flag = 0;
        cout << "ugly" << endl;
        break;
      }
    if (flag) cout << "respectable" << endl;
  }
  return 0;
}
