#include <bits/stdc++.h>
using namespace std;
int main() {
  int x1, y1, x2, y2, x3, y3, len1, len2, len3, max1, max2, max3,
      right = 0, i, alright = 0, tx1, ty1, tx2, ty2, tx3, ty3;
  cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;
  tx1 = x1;
  tx2 = x2;
  tx3 = x3;
  ty1 = y1;
  ty2 = y2;
  ty3 = y3;
  len1 = ((x1 - x2) * (x1 - x2)) + ((y1 - y2) * (y1 - y2));
  len2 = ((x1 - x3) * (x1 - x3)) + ((y1 - y3) * (y1 - y3));
  len3 = ((x3 - x2) * (x3 - x2)) + ((y3 - y2) * (y3 - y2));
  if (len1 > len2) {
    max1 = len1;
    max2 = len2;
  } else {
    max1 = len2;
    max2 = len1;
  }
  if (len3 > max1) {
    max3 = max2;
    max2 = max1;
    max1 = len3;
  } else {
    if (len3 > max2) {
      max3 = max2;
      max2 = len3;
    } else {
      max3 = len3;
    }
  }
  if (max1 == max2 + max3) {
    right = 1;
  }
  int dx[4] = {-1, 0, 1, 0};
  int dy[4] = {0, 1, 0, -1};
  if (right != 1) {
    for (i = 0; i < 4; i++) {
      x1 = tx1;
      y1 = ty1;
      x1 = x1 + dx[i];
      y1 = y1 + dy[i];
      len1 = ((x1 - x2) * (x1 - x2)) + ((y1 - y2) * (y1 - y2));
      len2 = ((x1 - x3) * (x1 - x3)) + ((y1 - y3) * (y1 - y3));
      len3 = ((x3 - x2) * (x3 - x2)) + ((y3 - y2) * (y3 - y2));
      if ((len1 == 0) || (len2 == 0) || (len3 == 0)) {
        continue;
      }
      if (len1 > len2) {
        max1 = len1;
        max2 = len2;
      } else {
        max1 = len2;
        max2 = len1;
      }
      if (len3 > max1) {
        max3 = max2;
        max2 = max1;
        max1 = len3;
      } else {
        if (len3 > max2) {
          max3 = max2;
          max2 = len3;
        } else {
          max3 = len3;
        }
      }
      if (max1 == max2 + max3) {
        alright = 1;
        break;
      }
    }
  }
  x1 = tx1;
  y1 = ty1;
  if ((right != 1) && (alright != 1)) {
    for (i = 0; i < 4; i++) {
      x2 = tx2;
      y2 = ty2;
      x2 = x2 + dx[i];
      y2 = y2 + dy[i];
      len1 = ((x1 - x2) * (x1 - x2)) + ((y1 - y2) * (y1 - y2));
      len2 = ((x1 - x3) * (x1 - x3)) + ((y1 - y3) * (y1 - y3));
      len3 = ((x3 - x2) * (x3 - x2)) + ((y3 - y2) * (y3 - y2));
      if ((len1 == 0) || (len2 == 0) || (len3 == 0)) {
        continue;
      }
      if (len1 > len2) {
        max1 = len1;
        max2 = len2;
      } else {
        max1 = len2;
        max2 = len1;
      }
      if (len3 > max1) {
        max3 = max2;
        max2 = max1;
        max1 = len3;
      } else {
        if (len3 > max2) {
          max3 = max2;
          max2 = len3;
        } else {
          max3 = len3;
        }
      }
      if (max1 == max2 + max3) {
        alright = 1;
        break;
      }
    }
  }
  x2 = tx2;
  y2 = ty2;
  if ((right != 1) && (alright != 1)) {
    for (i = 0; i < 4; i++) {
      x3 = tx3;
      y3 = ty3;
      x3 = x3 + dx[i];
      y3 = y3 + dy[i];
      len1 = ((x1 - x2) * (x1 - x2)) + ((y1 - y2) * (y1 - y2));
      len2 = ((x1 - x3) * (x1 - x3)) + ((y1 - y3) * (y1 - y3));
      len3 = ((x3 - x2) * (x3 - x2)) + ((y3 - y2) * (y3 - y2));
      if ((len1 == 0) || (len2 == 0) || (len3 == 0)) {
        continue;
      }
      if (len1 > len2) {
        max1 = len1;
        max2 = len2;
      } else {
        max1 = len2;
        max2 = len1;
      }
      if (len3 > max1) {
        max3 = max2;
        max2 = max1;
        max1 = len3;
      } else {
        if (len3 > max2) {
          max3 = max2;
          max2 = len3;
        } else {
          max3 = len3;
        }
      }
      if (max1 == max2 + max3) {
        alright = 1;
        break;
      }
    }
  }
  if (right == 1)
    cout << "RIGHT";
  else if (alright == 1)
    cout << "ALMOST";
  else
    cout << "NEITHER";
  return 0;
}
