#include <bits/stdc++.h>
int x[4], y[4];
bool derecho() {
  int a = (x[1] - x[0]) * (x[1] - x[0]) + (y[1] - y[0]) * (y[1] - y[0]);
  int b = (x[2] - x[0]) * (x[2] - x[0]) + (y[2] - y[0]) * (y[2] - y[0]);
  int c = (x[2] - x[1]) * (x[2] - x[1]) + (y[2] - y[1]) * (y[2] - y[1]);
  if ((a && b && c) == 0) {
    return false;
  }
  if (a + b == c || a + c == b || b + c == a)
    return true;
  else
    return false;
}
int main() {
  for (int i = 0; i < 3; i++) scanf("%d %d", &x[i], &y[i]);
  if (derecho()) {
    printf("RIGHT\n");
    return 0;
  }
  for (int i = 0; i < 3; i++) {
    x[i]--;
    if (derecho()) {
      printf("ALMOST\n");
      return 0;
    }
    x[i] += 2;
    if (derecho()) {
      printf("ALMOST\n");
      return 0;
    }
    x[i]--;
  }
  for (int i = 0; i < 3; i++) {
    y[i]--;
    if (derecho()) {
      printf("ALMOST\n");
      return 0;
    }
    y[i] += 2;
    if (derecho()) {
      printf("ALMOST\n");
      return 0;
    }
    y[i]--;
  }
  printf("NEITHER\n");
  return 0;
}
