#include <bits/stdc++.h>
using namespace std;
int main() {
  int x1, x2, y1, y2, x3, y3;
  cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;
  int ab = (((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
  int bc = (((x3 - x2) * (x3 - x2)) + ((y3 - y2) * (y3 - y2)));
  int ac = (((x3 - x1) * (x3 - x1)) + ((y3 - y1) * (y3 - y1)));
  if ((ab) == ((bc) + (ac)) || (bc) == ((ab) + (ac)) || (ac) == ((ab) + (bc))) {
    cout << "RIGHT";
    return 0;
  } else {
    int x4;
    int y4;
    int d[3] = {-1, 0, 1}, dy[3] = {-1, 0, 1};
    for (int i = 0; i < 3; i++) {
      x4 = x1 + d[i];
      for (int j = 0; j < 3; j++) {
        int w = 0;
        if (d[i] == 0) {
          w = dy[j];
        }
        y4 = y1 + w;
        ab = (((x2 - x4) * (x2 - x4)) + ((y2 - y4) * (y2 - y4)));
        bc = (((x3 - x2) * (x3 - x2)) + ((y3 - y2) * (y3 - y2)));
        ac = (((x3 - x4) * (x3 - x4)) + ((y3 - y4) * (y3 - y4)));
        if (((ab) == ((bc) + (ac)) || (bc) == ((ab) + (ac)) ||
             (ac) == ((ab) + (bc))) &&
            (ab != 0 && ac != 0 && bc != 0)) {
          cout << "ALMOST";
          return 0;
        }
      }
    }
    for (int i = 0; i < 3; i++) {
      x4 = x2 + d[i];
      for (int j = 0; j < 3; j++) {
        int w = 0;
        if (d[i] == 0) {
          w = dy[j];
        }
        y4 = y2 + w;
        ab = (((x4 - x1) * (x4 - x1)) + ((y4 - y1) * (y4 - y1)));
        bc = (((x3 - x4) * (x3 - x4)) + ((y3 - y4) * (y3 - y4)));
        ac = (((x3 - x1) * (x3 - x1)) + ((y3 - y1) * (y3 - y1)));
        if (((ab) == ((bc) + (ac)) || (bc) == ((ab) + (ac)) ||
             (ac) == ((ab) + (bc))) &&
            (ab != 0 && ac != 0 && bc != 0)) {
          cout << "ALMOST";
          return 0;
        }
      }
    }
    for (int i = 0; i < 3; i++) {
      x4 = x3 + d[i];
      for (int j = 0; j < 3; j++) {
        int w = 0;
        if (d[i] == 0) {
          w = dy[j];
        }
        y4 = y3 + w;
        ab = (((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
        bc = (((x4 - x2) * (x4 - x2)) + ((y4 - y2) * (y4 - y2)));
        ac = (((x4 - x1) * (x4 - x1)) + ((y4 - y1) * (y4 - y1)));
        if (((ab) == ((bc) + (ac)) || (bc) == ((ab) + (ac)) ||
             (ac) == ((ab) + (bc))) &&
            (ab != 0 && ac != 0 && bc != 0)) {
          cout << "ALMOSt";
          return 0;
        }
      }
    }
    cout << "NEITHER";
  }
  return 0;
}
