#include <bits/stdc++.h>
using namespace std;
bool isRight(int x1, int y1, int x2, int y2, int x3, int y3) {
  int d1 = (x1 - x2) * (x1 - x2) + ((y1 - y2) * (y1 - y2));
  int d2 = (x1 - x3) * (x1 - x3) + ((y1 - y3) * (y1 - y3));
  int d3 = (x3 - x2) * (x3 - x2) + ((y3 - y2) * (y3 - y2));
  return (((d1 + d2 == d3) || (d1 + d3 == d2) || (d2 + d3 == d1)) && d1 && d2 &&
          d3);
}
int main() {
  cin.tie(0);
  std::ios::sync_with_stdio(false);
  int x[3], y[3];
  for (int i = 0; i < 3; i++) cin >> x[i] >> y[i];
  int tast_1 = 2;
  bool xx = 0, yy = 0, xy;
  while (tast_1--) {
    for (int i = 0; i < 3; i++) {
      for (int j = 0; j < 3; j++) {
        if (i != j)
          for (int k = 0; k < 3; k++) {
            if (k != j && k != i) {
              if (x[i] == x[j] && x[i] != x[k]) xx = 1;
              if (y[i] == y[j] && y[i] != y[k]) yy = 1;
            }
          }
      }
    }
  }
  xy = isRight(x[0], y[0], x[1], y[1], x[2], y[2]);
  if ((xx && yy) || xy) {
    cout << "RIGHT\n";
    return 0;
  } else {
    for (int i = 0; i < 3; i++) {
      y[i]++;
      if (isRight(x[0], y[0], x[1], y[1], x[2], y[2])) {
        cout << "ALMOST\n";
        return 0;
      }
      y[i]--;
    }
    for (int i = 0; i < 3; i++) {
      x[i]++;
      if (isRight(x[0], y[0], x[1], y[1], x[2], y[2])) {
        cout << "ALMOST\n";
        return 0;
      }
      x[i]--;
    }
    for (int i = 0; i < 3; i++) {
      x[i]--;
      if (isRight(x[0], y[0], x[1], y[1], x[2], y[2])) {
        cout << "ALMOST\n";
        return 0;
      }
      x[i]++;
    }
    for (int i = 0; i < 3; i++) {
      y[i]--;
      if (isRight(x[0], y[0], x[1], y[1], x[2], y[2])) {
        cout << "ALMOST\n";
        return 0;
      }
      y[i]++;
    }
  }
  cout << "NEITHER\n";
}
