#include <bits/stdc++.h>
using namespace std;
int n;
pair<int, int> A[10];
vector<pair<int, int> > B;
bool ans;
vector<int> tmp, tmp2;
int main() {
  for (int i = 0; i < 8; i++) scanf("%d%d", &A[i].first, &A[i].second);
  sort(A, A + 8);
  ans = 1;
  if (A[0].first != A[1].first || A[1].first != A[2].first) ans = 0;
  if (A[3].first != A[4].first) ans = 0;
  if (A[5].first != A[6].first || A[6].first != A[7].first) ans = 0;
  if (A[0].first == A[3].first || A[3].first == A[5].first) ans = 0;
  if (A[0].second != A[3].second || A[3].second != A[5].second) ans = 0;
  if (A[1].second != A[6].second) ans = 0;
  if (A[2].second != A[4].second || A[4].second != A[7].second) ans = 0;
  if (A[0].second == A[1].second || A[1].second == A[2].second) ans = 0;
  printf("%s\n", (ans == 1) ? "respectable" : "ugly");
  return 0;
}
