//#include<stdio.h>
//int stack[1000005]={}, top=-1;
//void s1(int n)
//{
// top++;
// stack[top]=n;
// return;
//}
//void s2()
//{
// if (top>-1)
// {
// printf("%d", stack[top]);
// top--;
// }
// else
// {
// printf("-1");
// }
// return;
//}
//void s3()
//{
// printf("%d", top+1);
// return;
//}
//void s4()
//{
// printf("%d", top>-1 ? 0 : 1);
// return;
//}
//void s5()
//{
// if (top>-1)
// {
// printf("%d", stack[top]);
// }
// else
// {
// printf("-1");
// }
// return;
//}
//int main()
//{
// int n,i, s,t;
// scanf("%d", &n);
// for(i=1;i<=n;i++)
// {
// scanf("%d", &s);
// if (s==1)
// {
// scanf("%d", &t);
// s1(t);
// }
// else if(s==2)
// {
// s2();
// }
// else if(s==3)
// {
// s3();
// }
// else if(s==4)
// {
// s4();
// }
// else
// {
// s5();
// }
// if (s!=1)
// {
// printf("\n");
// }
// }
// return 0;
#include<stdio.h>
int main()
{
int i1,i2,j1,j2,y1,x1,y2,x2;
scanf("%d %d %d %d %d %d %d %d", &j1, &i1, &j2, &i2, &x1, &y1, &x2, &y2);
if ((j1 == x1 && i1==y1) || (j2==x2 && i2==y2) || (j1>))
{
printf("FACE");
return 0;
}
if ((j1==x2&&i1==y2) || (j2==x1&&i2==y1)||(j2==x1&&i1==y2) || (j1==x2 && i2==y))
{
printf("POINT");
return 0;
}
return 0;
}



