#include <bits/stdc++.h>
using namespace std;
int x1, Y1, x2, y2, x3, y3;
int distsq(int x1, int Y1, int x2, int y2) {
  return (x1 - x2) * (x1 - x2) + (Y1 - y2) * (Y1 - y2);
}
bool right() {
  int a, b, c;
  a = distsq(x1, Y1, x2, y2);
  b = distsq(x1, Y1, x3, y3);
  c = distsq(x2, y2, x3, y3);
  if (x1 * y2 + Y1 * x3 + x2 * y3 - x3 * y2 - y3 * x1 - x2 * Y1 == 0)
    return false;
  if (a + b == c || a + c == b || b + c == a)
    return true;
  else
    return false;
}
int main() {
  cin >> x1 >> Y1 >> x2 >> y2 >> x3 >> y3;
  if (right()) {
    cout << "RIGHT\n";
    return 0;
  }
  x1++;
  if (right()) {
    cout << "ALMOST\n";
    return 0;
  }
  x1--;
  x1--;
  if (right()) {
    cout << "ALMOST\n";
    return 0;
  }
  x1++;
  Y1++;
  if (right()) {
    cout << "ALMOST\n";
    return 0;
  }
  Y1--;
  Y1--;
  if (right()) {
    cout << "ALMOST\n";
    return 0;
  }
  Y1++;
  x2++;
  if (right()) {
    cout << "ALMOST\n";
    return 0;
  }
  x2--;
  x2--;
  if (right()) {
    cout << "ALMOST\n";
    return 0;
  }
  x2++;
  y2++;
  if (right()) {
    cout << "ALMOST\n";
    return 0;
  }
  y2--;
  y2--;
  if (right()) {
    cout << "ALMOST\n";
    return 0;
  }
  y2++;
  x3++;
  if (right()) {
    cout << "ALMOST\n";
    return 0;
  }
  x3--;
  x3--;
  if (right()) {
    cout << "ALMOST\n";
    return 0;
  }
  x3++;
  y3++;
  if (right()) {
    cout << "ALMOST\n";
    return 0;
  }
  y3--;
  y3--;
  if (right()) {
    cout << "ALMOST\n";
    return 0;
  }
  y3++;
  cout << "NEITHER\n";
  return 0;
}
