#include <bits/stdc++.h>
using namespace std;
bool valid(vector<int> a) {
  int c1 = ((a[2] - a[0]) * (a[2] - a[0])) + ((a[3] - a[1]) * (a[3] - a[1]));
  int c2 = ((a[2] - a[4]) * (a[2] - a[4])) + ((a[3] - a[5]) * (a[3] - a[5]));
  int c3 = ((a[0] - a[4]) * (a[0] - a[4])) + ((a[1] - a[5]) * (a[1] - a[5]));
  if (c1 == 0) return false;
  if (c2 == 0) return false;
  if (c3 == 0) return false;
  if (c1 + c2 == c3) return true;
  if (c1 + c3 == c2) return true;
  if (c3 + c2 == c1) return true;
  return false;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  vector<int> a(6), b;
  cin >> a[0] >> a[1] >> a[2] >> a[3] >> a[4] >> a[5];
  int i, j, k;
  if (valid(a))
    cout << "RIGHT\n";
  else {
    bool found = false;
    for (i = 0; i < 6; i += 2) {
      for (j = 0; j < 4; j++) {
        b = a;
        if (j == 0) b[i]++;
        if (j == 1) b[i]--;
        if (j == 2) b[i + 1]++;
        if (j == 3) b[i + 1]--;
        if (valid(b)) found = true;
      }
    }
    if (found)
      cout << "ALMOST\n";
    else
      cout << "NEITHER\n";
  }
  return 0;
}
