#include #include #include using namespace std; struct tocka { int x,y; int broj; }; struct cmp1 { bool operator() (const tocka &a, const tocka &b) { if(a.x!=b.x) return a.x niz,poc; int susjed[1001][2]; int obilazak[1001]; int ccw(tocka &t1, tocka &t2, tocka &t3) { return t1.x*(t2.y-t3.y)+t2.x*(t3.y-t1.y)+t3.x*(t1.y-t2.y); } int main() { int n; while(1) { scanf("%d",&n); if(n==0) break; niz.clear(); for(int i=0;i 0) kolko++; } if(kolko>n/2) smjer=1; else smjer=0; int novi; t=0; for(int i=0;i