#include <bits/stdc++.h>
using namespace std;
long long int gcd(long long int a, long long int b) {
  if (b == 0) return a;
  if (a == b) return a;
  return gcd(b, a % b);
}
bool isright(int x1, int y1, int x2, int y2, int x3, int y3) {
  int a[3];
  a[0] = ((x1 - x2) * (x1 - x2)) + ((y1 - y2) * (y1 - y2));
  a[1] = ((x1 - x3) * (x1 - x3)) + ((y1 - y3) * (y1 - y3));
  a[2] = ((x3 - x2) * (x3 - x2)) + ((y3 - y2) * (y3 - y2));
  sort(a, a + 3);
  return a[0] + a[1] == a[2] && a[0] * a[1] > 0;
}
int main() {
  int x1, y1, x2, y2, x3, y3;
  cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;
  int ans = 0;
  if (isright(x1, y1, x2, y2, x3, y3)) ans = 1;
  if (ans != 1 && (isright(x1 + 1, y1, x2, y2, x3, y3) ||
                   isright(x1, y1, x2 + 1, y2, x3, y3) ||
                   isright(x1, y1, x2, y2, x3 + 1, y3))) {
    ans = 2;
  }
  if (ans != 1 && (isright(x1 - 1, y1, x2, y2, x3, y3) ||
                   isright(x1, y1, x2 - 1, y2, x3, y3) ||
                   isright(x1, y1, x2, y2, x3 - 1, y3))) {
    ans = 2;
  }
  if (ans != 1 && (isright(x1, y1 + 1, x2, y2, x3, y3) ||
                   isright(x1, y1, x2, y2 + 1, x3, y3) ||
                   isright(x1, y1, x2, y2, x3, y3 + 1))) {
    ans = 2;
  }
  if (ans != 1 && (isright(x1, y1 - 1, x2, y2, x3, y3) ||
                   isright(x1, y1, x2, y2 - 1, x3, y3) ||
                   isright(x1, y1, x2, y2, x3, y3 - 1))) {
    ans = 2;
  }
  if (ans == 1)
    cout << "RIGHT" << endl;
  else if (ans == 2)
    cout << "ALMOST" << endl;
  else
    cout << "NEITHER" << endl;
  return 0;
}
