#include <bits/stdc++.h>
using namespace std;
int x[3], y[3];
bool check() {
  int a = x[0] * (y[1] - y[2]) + x[1] * (y[2] - y[0]) + x[2] * (y[0] - y[1]);
  if (!a) return 0;
  for (int i = 0; i < 3; i++) {
    int x1 = x[i] - x[(i + 1) % 3], y1 = y[i] - y[(i + 1) % 3];
    int x2 = x[i] - x[(i + 2) % 3], y2 = y[i] - y[(i + 2) % 3];
    if (!(x1 * x2 + y1 * y2)) {
      return 1;
    }
  }
  return 0;
}
int main() {
  for (int i = 0; i < 3; i++) scanf("%d%d", x + i, y + i);
  if (check()) {
    puts("RIGHT");
    return 0;
  }
  for (int i = 0; i < 3; i++) {
    x[i]++;
    ;
    if (check()) {
      puts("ALMOST");
      return 0;
    };
    x[i] -= 2;
    ;
    if (check()) {
      puts("ALMOST");
      return 0;
    };
    x[i]++;
    y[i]--;
    ;
    if (check()) {
      puts("ALMOST");
      return 0;
    };
    y[i] += 2;
    ;
    if (check()) {
      puts("ALMOST");
      return 0;
    };
    y[i]--;
  }
  puts("NEITHER");
  return 0;
}
