def katamuki(x1,y1,x2,y2): if (x2-x1) == 0: k=0 else: k=(y2-y1)/(x2-x1) return k def seppen(x,y,k): c=y-k*x return c N=int(input()) X=[] Y=[] count=0 for i in range(N): x,y=map(int, input().split()) if x: X.append(x) Y.append(y) for i in range(len(X)): for j in range(i+1,len(X)): k=katamuki(X[i],Y[i],X[j],Y[j]) c=seppen(X[i],Y[i],k) for l in range(j+1,len(X)): if k*X[l]+c-Y[l] == 0: count+=1 print(count+2)