#include <bits/stdc++.h>
using namespace std;
int dis(int x1, int y1, int x2, int y2) {
  int d = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2);
  return d;
}
bool area(int x1, int y1, int x2, int y2, int x3, int y3) {
  int a = (x1 - x2) * (y2 - y3) - (y1 - y2) * (x2 - x3);
  if (a == 0)
    return 0;
  else
    return 1;
}
bool check(int x1, int y1, int x2, int y2, int x3, int y3) {
  int nnn = area(x1, y1, x2, y2, x3, y3);
  if (nnn == 0) return false;
  int a = dis(x1, y1, x2, y2);
  int b = dis(x1, y1, x3, y3);
  int c = dis(x2, y2, x3, y3);
  if (a + b == c) return true;
  if (a + c == b) return true;
  if (b + c == a) return true;
  return false;
}
int main() {
  int x1, x2, x3, y1, y2, y3;
  cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;
  bool ans = false;
  bool temp = check(x1, y1, x2, y2, x3, y3);
  if (temp == true) {
    printf("RIGHT\n");
    return 0;
  }
  temp = check(x1 + 1, y1, x2, y2, x3, y3);
  ans = ans or temp;
  temp = check(x1 - 1, y1, x2, y2, x3, y3);
  ans = ans or temp;
  temp = check(x1, y1 + 1, x2, y2, x3, y3);
  ans = ans or temp;
  temp = check(x1, y1 - 1, x2, y2, x3, y3);
  ans = ans or temp;
  temp = check(x1, y1, x2 + 1, y2, x3, y3);
  ans = ans or temp;
  temp = check(x1, y1, x2 - 1, y2, x3, y3);
  ans = ans or temp;
  temp = check(x1, y1, x2, y2 + 1, x3, y3);
  ans = ans or temp;
  temp = check(x1, y1, x2, y2 - 1, x3, y3);
  ans = ans or temp;
  temp = check(x1, y1, x2, y2, x3 + 1, y3);
  ans = ans or temp;
  temp = check(x1, y1, x2, y2, x3 - 1, y3);
  ans = ans or temp;
  temp = check(x1, y1, x2, y2, x3, y3 + 1);
  ans = ans or temp;
  temp = check(x1, y1, x2, y2, x3, y3 - 1);
  ans = ans or temp;
  if (ans == true)
    printf("ALMOST\n");
  else
    printf("NEITHER\n");
}
