#include <bits/stdc++.h>
using namespace std;
int isright(int x1, int y1, int x2, int y2, int x3, int y3) {
  if (x1 == x2 && y1 == y2) return 0;
  if (x1 == x3 && y1 == y3) return 0;
  if (x3 == x2 && y3 == y2) return 0;
  if ((x2 - x1) * (x3 - x1) + (y2 - y1) * (y3 - y1) == 0) return 1;
  if ((x1 - x2) * (x3 - x2) + (y1 - y2) * (y3 - y2) == 0) return 1;
  if ((x1 - x3) * (x2 - x3) + (y1 - y3) * (y2 - y3) == 0) return 1;
  return 0;
}
int main() {
  int x1, x2, x3, y1, y2, y3;
  cin >> x1 >> y1;
  cin >> x2 >> y2;
  cin >> x3 >> y3;
  if (isright(x1, y1, x2, y2, x3, y3)) {
    cout << "RIGHT";
    return 0;
  }
  for (int dx = -1; dx <= 1; dx++) {
    for (int dy = -1; dy <= 1; dy++) {
      if (abs(dx) + abs(dy) == 1) {
        if (isright(x1 + dx, y1 + dy, x2, y2, x3, y3)) {
          cout << "ALMOST\n";
          return 0;
        }
        if (isright(x1, y1, x2 + dx, y2 + dy, x3, y3)) {
          cout << "ALMOST\n";
          return 0;
        }
        if (isright(x1, y1, x2, y2, x3 + dx, y3 + dy)) {
          cout << "ALMOST\n";
          return 0;
        }
      }
    }
  }
  cout << "NEITHER";
  return 0;
}
