#include <bits/stdc++.h>
using namespace std;
double point[4][2];
double dist(double x1, double x2, double y1, double y2) {
  double dx = x1 - x2, dy = y1 - y2;
  return sqrt(dx * dx + dy * dy);
}
double dist1(double x1, double x2, double y1, double y2) {
  double dx = x1 - x2, dy = y1 - y2;
  return dx * dx + dy * dy;
}
bool Right(int i) {
  bool isRight = false;
  double a = dist1(point[i][0], point[(i + 1) % 3][0], point[i][1],
                   point[(i + 1) % 3][1]);
  double b = dist1(point[i][0], point[(i + 2) % 3][0], point[i][1],
                   point[(i + 2) % 3][1]);
  double c = dist1(point[(i + 1) % 3][0], point[(i + 2) % 3][0],
                   point[(i + 1) % 3][1], point[(i + 2) % 3][1]);
  if (a + b == c)
    isRight = true;
  else if (a + c == b)
    isRight = true;
  else if (c + b == a)
    isRight = true;
  a = dist(point[i][0], point[(i + 1) % 3][0], point[i][1],
           point[(i + 1) % 3][1]);
  b = dist(point[i][0], point[(i + 2) % 3][0], point[i][1],
           point[(i + 2) % 3][1]);
  c = dist(point[(i + 1) % 3][0], point[(i + 2) % 3][0], point[(i + 1) % 3][1],
           point[(i + 2) % 3][1]);
  if (a + b <= c) return false;
  return isRight;
}
int main() {
  for (int i = 0; i < 3; i++) cin >> point[i][0] >> point[i][1];
  bool isRight = false, isAlmost = false;
  for (int i = 0; i < 3; i++) {
    for (int x = -1; x <= 1; x++) {
      point[i][0] += x;
      if (Right(i)) {
        if (x == 0)
          isRight = true;
        else
          isAlmost = true;
      }
      point[i][0] -= x;
      point[i][1] += x;
      if (Right(i)) {
        if (x == 0)
          isRight = true;
        else
          isAlmost = true;
      }
      point[i][1] -= x;
    }
  }
  if (isRight)
    cout << "RIGHT\n";
  else if (isAlmost)
    cout << "ALMOST\n";
  else
    cout << "NEITHER\n";
  return 0;
}
