#include <bits/stdc++.h>
using namespace std;
int dis(int x1, int y1, int x2, int y2) {
  return (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2);
}
bool righta(int x1, int y1, int x2, int y2, int x3, int y3) {
  pair<int, int> p1 = pair<int, int>(x1, y1), p2 = pair<int, int>(x2, y2),
                 p3 = pair<int, int>(x3, y3);
  if (p1 == p2 || p2 == p3 || p1 == p3) return false;
  int d1 = dis(x1, y1, x2, y2), d2 = dis(x2, y2, x3, y3),
      d3 = dis(x1, y1, x3, y3);
  if (d1 == d2 + d3 || d2 == d1 + d3 || d3 == d1 + d2) return true;
  return false;
}
int main() {
  int x1, y1, x2, y2, x3, y3;
  cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;
  if (righta(x1, y1, x2, y2, x3, y3))
    cout << "RIGHT" << endl;
  else {
    int t = 0;
    if (righta(x1 + 1, y1, x2, y2, x3, y3) ||
        righta(x1, y1 + 1, x2, y2, x3, y3) ||
        righta(x1, y1, x2 + 1, y2, x3, y3))
      t = 1;
    if (righta(x1, y1, x2, y2 + 1, x3, y3) ||
        righta(x1, y1, x2, y2, x3 + 1, y3) ||
        righta(x1, y1, x2, y2, x3, y3 + 1))
      t = 1;
    if (righta(x1 - 1, y1, x2, y2, x3, y3) ||
        righta(x1, y1 - 1, x2, y2, x3, y3) ||
        righta(x1, y1, x2 - 1, y2, x3, y3))
      t = 1;
    if (righta(x1, y1, x2, y2 - 1, x3, y3) ||
        righta(x1, y1, x2, y2, x3 - 1, y3) ||
        righta(x1, y1, x2, y2, x3, y3 - 1))
      t = 1;
    if (t)
      cout << "ALMOST" << endl;
    else
      cout << "NEITHER" << endl;
  }
  return 0;
}
