404195: GYM101446 I Parallelogram Dissection
Memory Limit:256 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
I. Parallelogram Dissectiontime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output
Given is a strictly convex polygon, that is, it is convex and no three vertices are collinear. Check if it is possible to cut it into 2017 parallelograms.
InputFirst line of the input contains one integer n (3 ≤ n ≤ 100).
Next n lines contains coordinates of the vertices of the polygon in clockwise order. i-th of those lines contains two integers xi and yi — coordinates of i-th vertice ( - 109 ≤ xi, yi ≤ 109).
OutputPrint "yes", if it is possible to cut the given polygon into 2017 parallelograms, or "no" otherwise.
ExamplesInput4Output
0 0
0 1
1 1
1 0
yesInput
3Output
0 0
0 1
1 0
no