#include <bits/stdc++.h>
using namespace std;
bool is_sq(int x1, int y1, int x2, int y2, int x3, int y3) {
  if (x1 == x2 && y1 == y2) return false;
  if (x1 == x3 && y1 == y3) return false;
  if (x3 == x2 && y3 == y2) return false;
  if ((x2 - x1) * (y3 - y1) == (x3 - x1) * (y2 - y1)) return false;
  if ((x2 - x1) * (x3 - x1) + (y2 - y1) * (y3 - y1) == 0) return true;
  if ((x1 - x2) * (x3 - x2) + (y1 - y2) * (y3 - y2) == 0) return true;
  if ((x1 - x3) * (x2 - x3) + (y1 - y3) * (y2 - y3) == 0) return true;
  return false;
}
int main() {
  int x1, x2, x3, y1, y2, y3;
  cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;
  if (is_sq(x1, y1, x2, y2, x3, y3)) {
    cout << "RIGHT" << endl;
    return 0;
  }
  for (int i = -1; i <= 1; i += 2) {
    if (is_sq(x1 + i, y1, x2, y2, x3, y3)) {
      cout << "ALMOST" << endl;
      return 0;
    }
    if (is_sq(x1, y1 + i, x2, y2, x3, y3)) {
      cout << "ALMOST" << endl;
      return 0;
    }
    if (is_sq(x1, y1, x2 + i, y2, x3, y3)) {
      cout << "ALMOST" << endl;
      return 0;
    }
    if (is_sq(x1, y1, x2, y2 + i, x3, y3)) {
      cout << "ALMOST" << endl;
      return 0;
    }
    if (is_sq(x1, y1, x2, y2, x3 + i, y3)) {
      cout << "ALMOST" << endl;
      return 0;
    }
    if (is_sq(x1, y1, x2, y2, x3, y3 + i)) {
      cout << "ALMOST" << endl;
      return 0;
    }
  }
  cout << "NEITHER" << endl;
  return 0;
}
