https://www.acmicpc.net/problem/15973
import java.util.Scanner;
public class Main {
static int check(int v1,int v2,int v3, int v4){
if(v2<v3 || v4<v1) return 0;
else if(v2==v3 || v4==v1) return 1;
return 2;
}
public static void main(String args[]) {
Scanner s=new Scanner(System.in);
int px1=s.nextInt();
int py1=s.nextInt();
int px2=s.nextInt();
int py2=s.nextInt();
int qx1=s.nextInt();
int qy1=s.nextInt();
int qx2=s.nextInt();
int qy2=s.nextInt();
int x=check(px1,px2,qx1,qx2);
int y=check(py1,py2,qy1,qy2);
if(x==0 || y==0) System.out.print("NULL");
else if(x==1) System.out.print((y==1)?"POINT":"LINE");
else System.out.print((y==1)?"LINE":"FACE");
}
}