#include <bits/stdc++.h>
using namespace std;
pair<int, int> a[10];
int main() {
  ios::sync_with_stdio(false);
  for (int i(0); i < int(8); i++) cin >> a[i].first >> a[i].second;
  sort(a, a + 8);
  int tmp = 0;
  if (a[0].first == a[1].first && a[1].first == a[2].first)
    if (a[3].first == a[4].first)
      if (a[5].first == a[6].first && a[6].first == a[7].first)
        if (a[0].second == a[3].second && a[3].second == a[5].second)
          if (a[1].second == a[6].second)
            if (a[2].second == a[4].second && a[4].second == a[7].second)
              if (a[0].second < a[1].second && a[1].second < a[2].second)
                tmp = 1;
  if (tmp)
    cout << "respectable" << endl;
  else
    cout << "ugly" << endl;
  return 0;
}
