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