#include <bits/stdc++.h>
using namespace std;
struct node {
  int x;
  int y;
};
bool isr(int ax, int ay, int bx, int by, int cx, int cy) {
  if (ax == bx && ay == by) return false;
  if (ax == cx && ay == cy) return false;
  if (cx == bx && cy == by) return false;
  int abx = bx - ax;
  int aby = by - ay;
  int acx = cx - ax;
  int acy = cy - ay;
  int bcx = cx - bx;
  int bcy = cy - by;
  if (abx * acx + aby * acy == 0) return true;
  if (abx * bcx + aby * bcy == 0) return true;
  if (acx * bcx + acy * bcy == 0) return true;
  return false;
}
int main() {
  node a, b, c;
  scanf("%d %d %d %d %d %d", &a.x, &a.y, &b.x, &b.y, &c.x, &c.y);
  if (isr(a.x, a.y, b.x, b.y, c.x, c.y))
    printf("RIGHT\n");
  else if (isr(a.x - 1, a.y, b.x, b.y, c.x, c.y))
    printf("ALMOST\n");
  else if (isr(a.x, a.y - 1, b.x, b.y, c.x, c.y))
    printf("ALMOST\n");
  else if (isr(a.x, a.y, b.x - 1, b.y, c.x, c.y))
    printf("ALMOST\n");
  else if (isr(a.x, a.y, b.x, b.y - 1, c.x, c.y))
    printf("ALMOST\n");
  else if (isr(a.x, a.y, b.x, b.y, c.x - 1, c.y))
    printf("ALMOST\n");
  else if (isr(a.x, a.y, b.x, b.y, c.x, c.y - 1))
    printf("ALMOST\n");
  else if (isr(a.x + 1, a.y, b.x, b.y, c.x, c.y))
    printf("ALMOST\n");
  else if (isr(a.x, a.y + 1, b.x, b.y, c.x, c.y))
    printf("ALMOST\n");
  else if (isr(a.x, a.y, b.x + 1, b.y, c.x, c.y))
    printf("ALMOST\n");
  else if (isr(a.x, a.y, b.x, b.y + 1, c.x, c.y))
    printf("ALMOST\n");
  else if (isr(a.x, a.y, b.x, b.y, c.x + 1, c.y))
    printf("ALMOST\n");
  else if (isr(a.x, a.y, b.x, b.y, c.x, c.y + 1))
    printf("ALMOST\n");
  else
    printf("NEITHER\n");
  return 0;
}
