Zombies have found out about the Zombie Contamination level checker and managed to damage it! Now detecting the shape of their main compound will be a real challenge for Heidi. As before, a lair can be represented as a strictly convex polygon on a lattice. Each vertex of the polygon occupies a point on the lattice. However, the damaged Zombie Contamination level checker can only tell, for each cell, whether the level of Zombie Contamination for that cell is in the set {1,2,3}. In other words, Heidi knows all the cells of the lattice for which the Contamination level is not 0 and not 4.
Given this information, Heidi still wants to know the exact shape of the lair to rain destruction on the zombies. Help her!
Output
For each test case, the following output is expected:
The first line of the output should contain one integer
V, the number of vertices of the polygon that is the secret lair. The next
V lines each should contain two integers, denoting the vertices of the polygon in the clockwise order, starting from the lexicographically smallest vertex.
Example
Output
4
2 3
2 4
6 6
5 2
4
2 2
2 3
3 3
3 2
Note
It is guaranteed that the solution always exists and is unique. It is guaranteed that in the correct solution the coordinates of the polygon vertices are between
1 and
N-1. A vertex
(x1,y1) is lexicographically smaller than vertex
(x2,y2) if
x1<x2 or
.