#include <bits/stdc++.h>
using namespace std;
bool shit(vector<pair<int, int> > vec) {
  double s1, s2, s3;
  s1 = (vec[0].first != vec[1].first) ? (vec[0].second - vec[1].second * 1.0) /
                                            (vec[0].first - vec[1].first)
                                      : 3000;
  s2 = (vec[0].first != vec[2].first) ? (vec[0].second - vec[2].second * 1.0) /
                                            (vec[0].first - vec[2].first)
                                      : 3000;
  s3 = (vec[2].first != vec[1].first) ? (vec[2].second - vec[1].second * 1.0) /
                                            (vec[2].first - vec[1].first)
                                      : 3000;
  if ((s1 == 3000 && (s2 == 0 || s3 == 0)) ||
      (s2 == 3000 && (s1 == 0 || s3 == 0)) ||
      (s3 == 3000 && (s2 == 0 || s1 == 0))) {
    return true;
  }
  if (abs(s1 * s2 + 1) < 0.0000001 || abs(s1 * s3 + 1) < 0.0000001 ||
      abs(s3 * s2 + 1) < 0.0000001) {
    return true;
  }
  return false;
}
int main() {
  vector<pair<int, int> > vec(3);
  for (int i = 0; i < 3; i++) cin >> vec[i].first >> vec[i].second;
  if (shit(vec)) {
    cout << "RIGHT";
    return 0;
  }
  for (int i = 0; i < 3; i++) {
    vec[i].first++;
    if (shit(vec)) {
      cout << "ALMOST";
      return 0;
    }
    vec[i].first -= 2;
    if (shit(vec)) {
      cout << "ALMOST";
      return 0;
    }
    vec[i].second++;
    vec[i].first++;
    if (shit(vec)) {
      cout << "ALMOST";
      return 0;
    }
    vec[i].second -= 2;
    if (shit(vec)) {
      cout << "ALMOST";
      return 0;
    }
    vec[i].second++;
  }
  cout << "NEITHER";
  return 0;
}
