s = input()
print(s.count('62'))
#include<cstdio>
int main(){
int x, y, x1, y1, x2, y2, x3, y3;
scanf("%d %d %d %d", &x, &y, &x1, &y1);
scanf("%d %d %d %d", &x2, &y2, &x3, &y3);
if((x1==x2 && y1==y2) || (x==x3 && y==y3) || (x==x3 && y1==y2) || (y==y3 && x1==x2)){
printf("POINT");
}else if( ( ( x1==x2 || x==x3) && y3>y && y1>y2) || ( ( y1==y2 || y==y3) && x1>x2 && x<x3) ){
printf("LINE");
}else if(((x1<x2 || x>x3) ) || (y1<y2 || y>y3)){
printf("NULL");
}else{
printf("FACE");
}
}
a, b = input().split()
a = int(a)
b = int(b)
if a>b :
print(b, a)
else :
print(a, b)