Colored cells
On a sheet of graph paper, an N-sided polygon is drawn with its vertices positioned at the intersections of the grid lines. All fully enclosed cells within the polygon, which do not extend beyond its boundaries, are colored. Your task is to determine the number of these colored cells, given the sequential coordinates of the polygon's vertices in a rectangular coordinate system. The axes align with two perpendicular grid lines, and the unit segment corresponds to the side of a cell.
Input data: The first line contains a natural number N, representing the number of vertices of the polygon. The following N lines each contain two integers, which are the consecutive coordinates of the polygon's vertices. All numerical values are within the range of (-50) to (50), inclusive.
Output data: Provide the number of colored cells.