#include <bits/stdc++.h>
using namespace std;
int Dist(int x1, int x2, int y1, int y2) {
  return (pow((x1 - x2), 2) + pow((y1 - y2), 2));
}
bool Verif(int x1, int x2, int x3, int y1, int y2, int y3) {
  int A = Dist(x1, x2, y1, y2);
  int B = Dist(x1, x3, y1, y3);
  int C = Dist(x2, x3, y2, y3);
  if (A == 0 || B == 0 || C == 0) {
    return false;
  }
  return true;
}
bool TRI(int x1, int x2, int x3, int y1, int y2, int y3) {
  if (Verif(x1, x2, x3, y1, y2, y3)) {
    int A = Dist(x1, x2, y1, y2);
    int B = Dist(x1, x3, y1, y3);
    int C = Dist(x2, x3, y2, y3);
    if (C == A + B) {
      return true;
    }
    if (B == A + C) {
      return true;
    }
    if (A == B + C) {
      return true;
    }
  }
  return false;
}
int main() {
  int x1, x2, x3, y1, y2, y3;
  cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;
  if (TRI(x1, x2, x3, y1, y2, y3)) {
    cout << "RIGHT";
    return 0;
  }
  if (TRI(x1 - 1, x2, x3, y1, y2, y3)) {
    cout << "ALMOST";
    return 0;
  }
  if (TRI(x1 + 1, x2, x3, y1, y2, y3)) {
    cout << "ALMOST";
    return 0;
  }
  if (TRI(x1, x2 - 1, x3, y1, y2, y3)) {
    cout << "ALMOST";
    return 0;
  }
  if (TRI(x1, x2 + 1, x3, y1, y2, y3)) {
    cout << "ALMOST";
    return 0;
  }
  if (TRI(x1, x2, x3 - 1, y1, y2, y3)) {
    cout << "ALMOST";
    return 0;
  }
  if (TRI(x1, x2, x3 + 1, y1, y2, y3)) {
    cout << "ALMOST";
    return 0;
  }
  if (TRI(x1, x2, x3, y1 - 1, y2, y3)) {
    cout << "ALMOST";
    return 0;
  }
  if (TRI(x1, x2, x3, y1 + 1, y2, y3)) {
    cout << "ALMOST";
    return 0;
  }
  if (TRI(x1, x2, x3, y1, y2 - 1, y3)) {
    cout << "ALMOST";
    return 0;
  }
  if (TRI(x1, x2, x3, y1, y2 + 1, y3)) {
    cout << "ALMOST";
    return 0;
  }
  if (TRI(x1, x2, x3, y1, y2, y3 - 1)) {
    cout << "ALMOST";
    return 0;
  }
  if (TRI(x1, x2, x3, y1, y2, y3 + 1)) {
    cout << "ALMOST";
    return 0;
  }
  cout << "NEITHER";
  return 0;
}
