#include <bits/stdc++.h>
using namespace std;
bool f(pair<int, int> a, pair<int, int> b, pair<int, int> c) {
  int dis1 = (a.first - b.first) * (a.first - b.first) +
             (a.second - b.second) * (a.second - b.second);
  int dis2 = (c.first - b.first) * (c.first - b.first) +
             (c.second - b.second) * (c.second - b.second);
  int dis3 = (a.first - c.first) * (a.first - c.first) +
             (a.second - c.second) * (a.second - c.second);
  vector<int> v;
  v.push_back(dis1);
  v.push_back(dis2);
  v.push_back(dis3);
  sort(v.begin(), v.end());
  if (v[0] + v[1] == v[2] && v[0] && v[1] && v[2]) return true;
  return false;
}
int main() {
  pair<int, int> a, b, c;
  cin >> a.first >> a.second >> b.first >> b.second >> c.first >> c.second;
  bool slv = f(a, b, c), alm = false;
  int x[4] = {-1, 1, 0, 0}, y[4] = {0, 0, 1, -1};
  pair<int, int> temp;
  for (int i = 0; i < 4; i++) {
    temp.first = a.first + x[i];
    temp.second = a.second + y[i];
    if (!alm) alm = f(temp, b, c);
  }
  for (int i = 0; i < 4; i++) {
    temp.first = b.first + x[i];
    temp.second = b.second + y[i];
    if (!alm) alm = f(a, temp, c);
  }
  for (int i = 0; i < 4; i++) {
    temp.first = c.first + x[i];
    temp.second = c.second + y[i];
    if (!alm) alm = f(a, b, temp);
  }
  if (slv)
    cout << "RIGHT" << endl;
  else if (alm)
    cout << "ALMOST" << endl;
  else
    cout << "NEITHER" << endl;
}
