p = input().split(' ')q = input().split(' ')long = [0]*10000cnt = 0face=0for i in range(4): for j in range(4): if p[i] == q[j]: face += 1 if i != j: cnt += 1if cnt == 1: print("LINE")elif cnt == 2: print("POINT")elif cnt == 0: for i in range (int(p[0]) , int(p[2])) : long[i]=1 for i in range(int(q[0]), int(q[2])): if long[i]==1: print("FACE") exit() print("NULL")else: print("NULL")
top of page
bottom of page