#include <bits/stdc++.h>
using namespace std;
int main() {
  pair<int, int> p[8];
  int b = 1, i, *t = (int*)&p;
  char n[] = "0468:>177;3=599?468:133>";
  for (i = 0; i < 16; cin >> t[i++])
    ;
  sort(p, p + 8);
  for (i = 0; i < 24; i += 2)
    if (t[n[i] - '0'] == t[n[i + 1] - '0'] != i < 16) b = 0;
  cout << (b ? "respectable" : "ugly") << endl;
}
