#include <bits/stdc++.h>
using namespace std;
bool isright(double x1, double y1, double x2, double y2, double x3, double y3) {
  int d1 = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2);
  int d2 = (x1 - x3) * (x1 - x3) + (y1 - y3) * (y1 - y3);
  int d3 = (x2 - x3) * (x2 - x3) + (y2 - y3) * (y2 - y3);
  if ((d1 == d2 + d3 && (d2 * d3 / 2) > 0) ||
      (d2 == d1 + d3 && (d2 * d1 / 2) > 0) ||
      (d3 == d2 + d1 && (d3 * d1 / 2) > 0))
    return true;
  return false;
}
int main() {
  std::ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int x1, y1, x2, y2, x3, y3;
  cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;
  if (isright(x1, y1, x2, y2, x3, y3)) {
    cout << "RIGHT";
    return 0;
  } else {
    if (isright(x1 + 1, y1, x2, y2, x3, y3)) {
      cout << "ALMOST";
      return 0;
    }
    if (isright(x1 - 1, y1, x2, y2, x3, y3)) {
      cout << "ALMOST";
      return 0;
    }
    if (isright(x1, y1 + 1, x2, y2, x3, y3)) {
      cout << "ALMOST";
      return 0;
    }
    if (isright(x1, y1 - 1, x2, y2, x3, y3)) {
      cout << "ALMOST";
      return 0;
    }
    if (isright(x1, y1, x2 - 1, y2, x3, y3)) {
      cout << "ALMOST";
      return 0;
    }
    if (isright(x1, y1, x2 + 1, y2, x3, y3)) {
      cout << "ALMOST";
      return 0;
    }
    if (isright(x1, y1, x2, y2 - 1, x3, y3)) {
      cout << "ALMOST";
      return 0;
    }
    if (isright(x1, y1, x2, y2 + 1, x3, y3)) {
      cout << "ALMOST";
      return 0;
    }
    if (isright(x1, y1, x2, y2, x3 + 1, y3)) {
      cout << "ALMOST";
      return 0;
    }
    if (isright(x1, y1, x2, y2, x3 - 1, y3)) {
      cout << "ALMOST";
      return 0;
    }
    if (isright(x1, y1, x2, y2, x3, y3 - 1)) {
      cout << "ALMOST";
      return 0;
    }
    if (isright(x1, y1, x2, y2, x3, y3 + 1)) {
      cout << "ALMOST";
      return 0;
    }
  }
  cout << "NEITHER" << endl;
  return 0;
}
