#include using namespace std; #define rep(i,n) for(int i=0;i<(n);++i) int N; struct P { int x,y; }; P p[100][2]; P l,m; int s(int x){return x<0?-1:x>0?1:0;} int f(P const & p){ return s((p.x-l.x)*(m.y-l.y)-(p.y-l.y)*(m.x-l.x)); } int main(){ cin>>N; rep(i,N)cin>>p[i][0].x>>p[i][0].y>>p[i][1].x>>p[i][1].y; int b=1; rep(j,N)rep(jj,2)rep(k,j)rep(kk,2){ l=p[j][jj]; m=p[k][kk]; if(l.x!=m.x||l.y!=m.y){ int c=0; rep(i,N){ if(f(p[i][0])*f(p[i][1])<=0){ ++c; } } if(b