#include <bits/stdc++.h>
using namespace std;
int points[3][2];
int vect[2][2];
bool IsRight() {
  if (vect[0][0] == 0 && vect[0][1] == 0) {
    return false;
  }
  if (vect[1][0] == 0 && vect[1][1] == 0) {
    return false;
  }
  if (vect[0][0] * vect[1][0] + vect[0][1] * vect[1][1] == 0) {
    return true;
  }
  return false;
}
bool Check() {
  for (int rot = 0; rot < 3; rot++) {
    vect[0][0] = points[(rot + 1) % 3][0] - points[rot][0];
    vect[0][1] = points[(rot + 1) % 3][1] - points[rot][1];
    vect[1][0] = points[(rot + 2) % 3][0] - points[rot][0];
    vect[1][1] = points[(rot + 2) % 3][1] - points[rot][1];
    if (IsRight()) {
      return true;
    }
  }
  return false;
}
int main() {
  for (int i = 0; i < 3; i++) {
    for (int i2 = 0; i2 < 2; i2++) {
      cin >> points[i][i2];
    }
  }
  bool right = false;
  bool almost = false;
  if (Check()) {
    right = true;
  }
  for (int i = 0; i < 3; i++) {
    points[i][0]++;
    if (Check()) {
      almost = true;
    }
    points[i][0] -= 2;
    if (Check()) {
      almost = true;
    }
    points[i][0]++;
    points[i][1]++;
    if (Check()) {
      almost = true;
    }
    points[i][1] -= 2;
    if (Check()) {
      almost = true;
    }
    points[i][1]++;
  }
  if (right) {
    cout << "RIGHT" << endl;
  } else if (almost) {
    cout << "ALMOST" << endl;
  } else {
    cout << "NEITHER" << endl;
  }
}
