John Zynoulus has a garden full of blue-black flowers. They are arranged in a square grid pattern.
However, Measharan scientists warn that there is a risk of a red rabbit invasion. The rabbits like to eat blue-black flowers, so John needs to put a fence to protect some of our flowers. For reasons of simplicity and aesthetics, we have decided that our fence will have a polygonal shape, and each of its vertices will be placed where a flower originally was. For example, the fence below protects 7 blue-black flowers from red rabbits.
John has designed the shape of the fence, but has some problems with calculating the number of blue-black flowers inside it. Can you help him?
The first line contains the number of vertices , .
-th of the following next lines contains coordinates , of the -th vertex of the polygon, where . Each pair is distinct, and edges of our polygon don’t intersect (except in vertices).
Output the number of grid points inside the polygon.
Input
4 0 0 3 0 3 3 0 6
Output
7