Lifting Walls

No attempts yetTime limit1sMemory limit256 MB

Problem

A construction firm is putting up an apartment building. The walls are made in advance and lifted into place with cranes. The firm has found nn possible crane locations and wants to pick some of them so that the center of each of the four walls is reached by at least one crane. Cranes are expensive, so the firm wants to use as few as possible. A crane reaches a wall if the distance from the crane to that wall's center is at most rr.

The house is a rectangle with length \ell and width ww.

Find the minimum number of cranes needed to reach the centers of all four walls.

The figure shows the layout of the first example.

Input

The first line contains four space separated integers \ell, ww, nn and rr, all positive and at most 30. \ell and ww are the length and the width of the house, nn is the number of possible crane locations, and rr is the reaching distance of a crane.

Each of the next nn lines contains two integers xx and yy (100x,y100-100 \le x, y \le 100), one possible crane location per line. The origin of the coordinate system is the center of the building and the xx axis runs along the length of the house, so the wall centers are at (/2,0)(-\ell/2, 0), (/2,0)(\ell/2, 0), (0,w/2)(0, -w/2) and (0,w/2)(0, w/2).

Output

Print the minimum number of cranes needed to reach the centers of all four walls. If no choice of cranes reaches all four wall centers, print Impossible.