Farmer John has bought a new machine that can plant grass in any axis-aligned rectangular region of his farm (a rectangle whose sides are vertical and horizontal). One day the machine malfunctions and plants grass in not one but $N$ ($1 \le N \le 10$) rectangular regions, some of which may overlap.
Given the rectangular regions that were planted with grass, help Farmer John compute the total area of his farm that is now covered with grass.