Input series of four integers x y w h — position of top-level corner of the rectangle (maybe negative) and it's positive width and height (w and h ⩽ 50 each). The number of sequences is ⩽ 1000. Calculate and display total amount of area occupied by rectangles. Note the coordinates can be any possible integers.
1 1 5 10 3 4 5 6 0 7 12 5 3 6 2 2
Spoiler (press «comments» in site header to reveal):
96
Текст после вывода — это тоже пояснения, не показываются.