#include <bits/stdc++.h>
using namespace std;
struct point {
  int x, y;
} p[3];
bool operator==(point p1, point p2) { return p1.x == p2.x && p1.y == p2.y; }
int dis(point p1, point p2) {
  return (p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y) * (p1.y - p2.y);
}
bool ist(point p[3]) {
  if (p[0] == p[1] || p[1] == p[2] || p[2] == p[0]) return 0;
  int a = dis(p[0], p[1]), b = dis(p[1], p[2]), c = dis(p[2], p[0]);
  if (a + b == c || a + c == b || a == b + c)
    return 1;
  else
    return 0;
}
int dec(point p[3]) {
  if (ist(p)) return 1;
  int i, j, k;
  for (i = 0; i < 3; i++)
    for (k = 0; k <= 1; k++)
      for (j = -1; j <= 1; j += 2) {
        point pp[3];
        pp[0] = p[0];
        pp[1] = p[1];
        pp[2] = p[2];
        if (k)
          pp[i].x += j;
        else
          pp[i].y += j;
        if (ist(pp)) return 2;
      }
  return 3;
}
int main() {
  int i, j;
  for (i = 0; i < 3; i++) scanf("%d%d", &p[i].x, &p[i].y);
  int res = dec(p);
  if (res == 1)
    puts("RIGHT");
  else if (res == 2)
    puts("ALMOST");
  else
    puts("NEITHER");
  return 0;
}
