The Cells are Painted out
On the sheet of paper in a cell is the broken line with N summits. They lie on the crossings of the lines of the net. All of cells which was crossed by broken line painted out (a cell is considered crossed if it has even one general point with broken line). You have to calculate the quantity of the painted out cells if beginning of the system of coordinates lies on the crossing of the lines of the net and parallel to lines of the net, and a single segment equals the side of cell.
Input
There is a natural number N – the quantity of the summits of the broken line in the first line. In next N lines are two integers, absence is between them. Each of them is co-ordinates each of summits of the broken line. All of numbers do not exceed 100 by the module.
Output
You have to write the quantity of the crossed cells.