#include <bits/stdc++.h>
using namespace std;
int main() {
  int x[3], y[3], Lx[3], Ly[3];
  int dx[3][13] = {{0, -1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0},
                   {0, 0, 0, 0, 0, -1, 0, 0, 1, 0, 0, 0, 0},
                   {0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 1}},
      dy[3][13] = {{0, 0, -1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0},
                   {0, 0, 0, 0, 0, 0, -1, 1, 0, 0, 0, 0, 0},
                   {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 1, 0}};
  float l[3], L[3];
  for (int i = 0; i < 3; i++) cin >> x[i] >> y[i];
  for (int j = 0; j < 13; j++) {
    for (int i = 0; i < 3; i++)
      Lx[i] = abs(x[i] + dx[i][j] - x[(i + 1) % 3] - dx[(i + 1) % 3][j]),
      Ly[i] = abs(y[i] + dy[i][j] - y[(i + 1) % 3] - dy[(i + 1) % 3][j]);
    for (int i = 0; i < 3; i++)
      L[i] = Lx[i] * Lx[i] + Ly[i] * Ly[i], l[i] = sqrt(L[i]);
    int mx = *max_element(L, L + 3);
    if ((l[0] < l[1] + l[2]) && (l[0] > abs(l[1] - l[2])) &&
        (mx == L[0] + L[1] + L[2] - mx)) {
      cout << ((j == 0) ? "RIGHT" : "ALMOST") << endl;
      return 0;
    }
  }
  cout << "NEITHER" << endl;
  return 0;
}
