#include <stdio.h>
int main(void)
{
int N, i, j, cnt;
int arr[50][2];
for(i = 0; i < N; i++)
scanf("%d %d", &arr
[i
][0], &arr
[i
][1]);
for(i = 0; i < N; i++)
{
cnt = 0;
for(j = 0; j < N; j++)
if(arr[i][0] < arr[j][0] && arr[i][1] < arr[j][1])
cnt++;
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKQp7CiAgICBpbnQgTiwgaSwgaiwgY250OwogICAgaW50IGFycls1MF1bMl07CiAgICAKICAgIHNjYW5mKCIlZCIsICZOKTsKICAgIAogICAgZm9yKGkgPSAwOyBpIDwgTjsgaSsrKQogICAgICAgIHNjYW5mKCIlZCAlZCIsICZhcnJbaV1bMF0sICZhcnJbaV1bMV0pOwogICAgCiAgICBmb3IoaSA9IDA7IGkgPCBOOyBpKyspCiAgICB7CiAgICAgICAgY250ID0gMDsKICAgICAgICAKICAgICAgICBmb3IoaiA9IDA7IGogPCBOOyBqKyspCiAgICAgICAgICAgIGlmKGFycltpXVswXSA8IGFycltqXVswXSAmJiBhcnJbaV1bMV0gPCBhcnJbal1bMV0pCiAgICAgICAgICAgICAgICBjbnQrKzsKICAgICAgICAKICAgICAgICBwcmludGYoIiVkICIsICsrY250KTsKICAgIH0KICAgIHJldHVybiAwOwp9