CF983D Arkady and Rectangles

Description

Arkady has got an infinite plane painted in color $ 0 $ . Then he draws $ n $ rectangles filled with paint with sides parallel to the Cartesian coordinate axes, one after another. The color of the $ i $ -th rectangle is $ i $ (rectangles are enumerated from $ 1 $ to $ n $ in the order he draws them). It is possible that new rectangles cover some of the previous ones completely or partially. Count the number of different colors on the plane after Arkady draws all the rectangles.

Input Format

N/A

Output Format

N/A

Explanation/Hint

![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF983D/e648fc5d318d6ae14ac43cb4aec90db39b1df7c2.png) That's how the plane looks in the first sample![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF983D/a83940168cd3126926164152304295d595ea5d06.png) That's how the plane looks in the second sample $ 0 $ = white, $ 1 $ = cyan, $ 2 $ = blue, $ 3 $ = purple, $ 4 $ = yellow, $ 5 $ = red.