#include <stdio.h>
#include <stdlib.h>
struct win
{
int x1;
int y1;
int x2;
int y2;
int c;//窗口名称
struct win* next;
};
struct point
{
int x;
int y;
};
int main()
{
int NUM1;
int NUM2;
scanf("%d",&NUM1);
scanf("%d",&NUM2);
struct win* head=NULL;
int i;
for(i=0;i<NUM1;i++)
{
struct win* p=(struct win*)malloc(sizeof(struct win));
scanf("%d",&(p->x1));
scanf("%d",&(p->y1));
scanf("%d",&(p->x2));
scanf("%d",&(p-&g