#include <bits/stdc++.h>
using namespace std;
long gcd(long a, long b) {
  if (a % b == 0)
    return b;
  else
    gcd(b % a, a);
}
int right(long x1, long y1, long x2, long y2, long x3, long y3) {
  if ((x1 == x2 && y1 == y2) || (x2 == x3 && y2 == y3) ||
      (x1 == x3 && y1 == y3))
    return 0;
  if ((x1 == x2 && x2 == x3) || (y1 == y2 && y2 == y3)) return 0;
  long a, b, c;
  a = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2);
  b = (x1 - x3) * (x1 - x3) + (y1 - y3) * (y1 - y3);
  c = (x2 - x3) * (x2 - x3) + (y2 - y3) * (y2 - y3);
  if (a + b == c || b + c == a || c + a == b)
    return 1;
  else
    return 0;
}
int main() {
  long x1, x2, x3, y1, y2, y3;
  while (scanf("%ld%ld%ld%ld%ld%ld", &x1, &y1, &x2, &y2, &x3, &y3) != EOF) {
    long s = 0;
    s = right(x1, y1, x2, y2, x3, y3);
    if (s == 1) {
      printf("RIGHT\n");
      continue;
    }
    s = right(x1 + 1, y1, x2, y2, x3, y3);
    if (s == 1) {
      printf("ALMOST\n");
      continue;
    }
    s = right(x1 - 1, y1, x2, y2, x3, y3);
    if (s == 1) {
      printf("ALMOST\n");
      continue;
    }
    s = right(x1, y1 + 1, x2, y2, x3, y3);
    if (s == 1) {
      printf("ALMOST\n");
      continue;
    }
    s = right(x1, y1 - 1, x2, y2, x3, y3);
    if (s == 1) {
      printf("ALMOST\n");
      continue;
    }
    s = right(x1, y1, x2 + 1, y2, x3, y3);
    if (s == 1) {
      printf("ALMOST\n");
      continue;
    }
    s = right(x1, y1, x2 - 1, y2, x3, y3);
    if (s == 1) {
      printf("ALMOST\n");
      continue;
    }
    s = right(x1, y1, x2, y2 + 1, x3, y3);
    if (s == 1) {
      printf("ALMOST\n");
      continue;
    }
    s = right(x1, y1, x2, y2 - 1, x3, y3);
    if (s == 1) {
      printf("ALMOST\n");
      continue;
    }
    s = right(x1, y1, x2, y2, x3 + 1, y3);
    if (s == 1) {
      printf("ALMOST\n");
      continue;
    }
    s = right(x1, y1, x2, y2, x3 - 1, y3);
    if (s == 1) {
      printf("ALMOST\n");
      continue;
    }
    s = right(x1, y1, x2, y2, x3, y3 + 1);
    if (s == 1) {
      printf("ALMOST\n");
      continue;
    }
    s = right(x1, y1, x2, y2, x3, y3 - 1);
    if (s == 1) {
      printf("ALMOST\n");
      continue;
    }
    printf("NEITHER\n");
  }
  return 0;
}
