This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <stdio.h>
int min(int a, int b) { return a < b ? a : b; }
int max(int a, int b) { return a > b ? a : b; }
int main() {
	int xl1, yl1, xr1, yr1, xl2, yl2, xr2, yr2, xl, yl, xr, yr;
	scanf("%d%d%d%d%d%d%d%d", &xl1, &yl1, &xr1, &yr1, &xl2, &yl2, &xr2, &yr2);
	xl = max(xl1, xl2), xr = min(xr1, xr2), yl = max(yl1, yl2), yr = min(yr1, yr2);
	if (xl > xr || yl > yr)
		printf("NULL\n");
	else if (xl == xr && yl == yr)
		printf("POINT\n");
	else if (xl == xr || yl == yr)
		printf("LINE\n");
	else
		printf("FACE\n");
	return 0;
}
Compilation message (stderr)
box.c: In function 'main':
box.c:9:2: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
    9 |  scanf("%d%d%d%d%d%d%d%d", &xl1, &yl1, &xr1, &yr1, &xl2, &yl2, &xr2, &yr2);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| # | Verdict  | Execution time | Memory | Grader output | 
|---|
| Fetching results... | 
| # | Verdict  | Execution time | Memory | Grader output | 
|---|
| Fetching results... | 
| # | Verdict  | Execution time | Memory | Grader output | 
|---|
| Fetching results... |