import patterns;

defaultpen(0.5);
bbox(white, Fill);
size(1024, 0);

path a;
int n = stdin;

pen[] colours = { grey, red, blue, pink, orange, green, yellow, purple};

for (int i = 0; i < n; ++i) {
  int x = stdin;
  int y = stdin;
  int w = stdin;
  int h = stdin;
  filldraw(
      (x,y) -- (x+w,y) -- (x+w,y+h) -- (x,h+y) -- cycle,
      fillpen=colours[i % colours.length] + opacity(1.0),
      white+linewidth(20));
}
shipout(bbox(xmargin=0, white, Fill));
