#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int t;
  cin >> t;
  while (t--) {
    long long int r, b, k;
    cin >> r >> b >> k;
    if (r < b) swap(r, b);
    long long int temp = r / b;
    if (r == b) {
      cout << "OBEY"
           << "\n";
    } else if (r % b == 0) {
      temp--;
      if (temp >= k)
        cout << "REBEL"
             << "\n";
      else
        cout << "OBEY"
             << "\n";
    } else {
      long long int t1 = r % b, t2 = b % t1;
      if (t2 == 0) t2 += t1;
      if ((r - t2) % b == 0) {
        temp = (r - t2) / b;
      } else {
        temp = (r - t2) / b + 1;
      }
      if (temp >= k)
        cout << "REBEL"
             << "\n";
      else
        cout << "OBEY"
             << "\n";
    }
  }
  return 0;
}
