#include <bits/stdc++.h>
using namespace std;
int a[3];
bool judge(int x1, int y1, int x2, int y2, int x3, int y3) {
  int ax = x2 - x1, a1 = y2 - y1, b = x3 - x1, b1 = y3 - y1;
  if (ax * b1 == b * a1) return 0;
  int x11 = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2);
  int x22 = (x1 - x3) * (x1 - x3) + (y1 - y3) * (y1 - y3);
  int x33 = (x2 - x3) * (x2 - x3) + (y2 - y3) * (y2 - y3);
  a[0] = x11;
  a[1] = x22;
  a[2] = x33;
  sort(a, a + 3);
  if (a[2] - a[1] - a[0] == 0)
    return 1;
  else
    return 0;
}
int main() {
  int k;
  int a[3];
  int x1, y1, x2, y2, x3, y3;
  while (scanf("%d %d %d %d %d %d", &x1, &y1, &x2, &y2, &x3, &y3) != EOF) {
    if (judge(x1, y1, x2, y2, x3, y3))
      puts("RIGHT");
    else if (judge(x1 + 1, y1, x2, y2, x3, y3))
      puts("ALMOST");
    else if (judge(x1 - 1, y1, x2, y2, x3, y3))
      puts("ALMOST");
    else if (judge(x1, y1 + 1, x2, y2, x3, y3))
      puts("ALMOST");
    else if (judge(x1, y1 - 1, x2, y2, x3, y3))
      puts("ALMOST");
    else if (judge(x1, y1, x2 + 1, y2, x3, y3))
      puts("ALMOST");
    else if (judge(x1, y1, x2 - 1, y2, x3, y3))
      puts("ALMOST");
    else if (judge(x1, y1, x2, y2 + 1, x3, y3))
      puts("ALMOST");
    else if (judge(x1, y1, x2, y2 - 1, x3, y3))
      puts("ALMOST");
    else if (judge(x1, y1, x2, y2, x3 + 1, y3))
      puts("ALMOST");
    else if (judge(x1, y1, x2, y2, x3 - 1, y3))
      puts("ALMOST");
    else if (judge(x1, y1, x2, y2, x3, y3 + 1))
      puts("ALMOST");
    else if (judge(x1, y1, x2, y2, x3, y3 - 1))
      puts("ALMOST");
    else
      puts("NEITHER");
  }
}
