The famous in the Volga region H&H company decided to create a very special graphic tool. The head of H&H believes that it can be used by scientists for numerical experiments. That's why one of the parts of the tool is "triangulating" module. And this module is one you are responsible for.
You are given N points. No three points lay on the same line. Lets consider the polygon of minimal area containing all the points. Your task is to split the polygon to the set of not overlapped triangles in such a way, that all the vertices of the triangles are points from the given set. Each point should be used as a vertex of at least one triangle.
Выходные данные
Write in the first line of the output file the number of the triangles Q. Each of the following Q lines should contain description of the triangle. The description consists of three integers — numbers of points for each vertex of the triangle. The points are numbered from 1 to N in the order of their appearance in the input file. If there are several solutions, output any of them.
Пример
Выходные данные
7
1 2 3
1 3 4
1 4 6
2 3 5
2 5 6
6 4 5
3 4 5