#include <bits/stdc++.h>
using namespace std;
const int Maxn = 1e7 + 10;
const long long Mod = 1e9 + 7;
double xx1, xx2, xx3;
double yy1, yy2, yy3;
double l1, l2, l3;
bool RIGHT(int x1, int y1, int x2, int y2, int x3, int y3) {
  if ((x2 == x1 && y2 == y1) || (x3 == x1 && y3 == y1) ||
      (x3 == x2 && y3 == y2))
    return false;
  return (x2 - x1) * (x3 - x1) + (y2 - y1) * (y3 - y1) == 0 ||
         (x2 - x1) * (x3 - x2) + (y2 - y1) * (y3 - y2) == 0 ||
         (x3 - x1) * (x3 - x2) + (y3 - y1) * (y3 - y2) == 0;
}
bool ALMOST(int x1, int y1, int x2, int y2, int x3, int y3) {
  return RIGHT(x1 + 1, y1, x2, y2, x3, y3) ||
         RIGHT(x1 - 1, y1, x2, y2, x3, y3) ||
         RIGHT(x1, y1 + 1, x2, y2, x3, y3) ||
         RIGHT(x1, y1 - 1, x2, y2, x3, y3) ||
         RIGHT(x1, y1, x2 + 1, y2, x3, y3) ||
         RIGHT(x1, y1, x2 - 1, y2, x3, y3) ||
         RIGHT(x1, y1, x2, y2 + 1, x3, y3) ||
         RIGHT(x1, y1, x2, y2 - 1, x3, y3) ||
         RIGHT(x1, y1, x2, y2, x3 + 1, y3) ||
         RIGHT(x1, y1, x2, y2, x3 - 1, y3) ||
         RIGHT(x1, y1, x2, y2, x3, y3 + 1) || RIGHT(x1, y1, x2, y2, x3, y3 - 1);
}
bool NEITHER(int x1, int y1, int x2, int y2, int x3, int y3) {
  return !RIGHT(x1, y1, x2, y2, x3, y3) && !ALMOST(x1, y1, x2, y2, x3, y3);
}
int main() {
  int x1, y1, x2, y2, x3, y3;
  cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;
  if (RIGHT(x1, y1, x2, y2, x3, y3)) {
    cout << "RIGHT" << endl;
    return 0;
  }
  if (ALMOST(x1, y1, x2, y2, x3, y3)) {
    cout << "ALMOST" << endl;
    return 0;
  }
  cout << "NEITHER" << endl;
  return 0;
}
