#include <stdio.h>
#include <stdlib.h>
int main()
{
int x1,y1,x2,y2,X1,Y1,X2,Y2;
int a,b,A,B;
scanf("%d %d %d %d",&x1,&y1,&x2,&y2);
scanf("%d %d %d %d",&X1,&Y1,&X2,&Y2);
a = abs((x1-x2)+(X1-X2));
b = abs((y1-y2)+(Y1-Y2));
//A와B의 계산 다시 하기
if(x1<X2){
A = abs(X2-x1);
printf("(1)");
}
else if(X1<x2){
A = abs(x2-X1);
printf("(2)");
}
else if(x1<X1&&X1<X2&&X2<x2){
A = abs(x2-x1);
printf("(3)");
}
else if(X1<x1&&x1<x2&&x2<X2){
A = abs(X2-X1);
printf("(4)");
}
if(y1<Y2){
B = abs(Y2-y1);
}
else if(Y1<y2){
B = abs(y2-Y1);
}
else if(y1<Y1&&Y1<Y2&&Y2<y2){
B = abs(y2-y1);
}
else if(Y1<y1&&y1<y2&&y2<Y2){
B = abs(Y2-Y1);
}
if(a==A&&b==B){
printf("POINT");
}
else if(a==A&&b>B || b==B&&a>A){
printf("LINE");
}
else if(a-A<0||b-B<0){
printf("NULL");
}
else{
printf("FACE");
}
printf("\n%d %d\n%d %d",a,b,A,B);
return 0;
}