- Time limit: 1.00 s
- Memory limit: 512 MB
Your task is to calculate the area of a given polygon.
The polygon consists of vertices . The vertices and are adjacent for , and the vertices and are also adjacent.
Input
The first input line has an integer : the number of vertices.
After this, there are lines that describe the vertices. The th such line has two integers and .
You may assume that the polygon is simple, i.e., it does not intersect itself.
Output
Print one integer: where the area of the polygon is (this ensures that the result is an integer).
Constraints
Example
Input:
4 1 1 4 2 3 5 1 4
Output:
16