n=int(input()) P=[tuple(map(int,input().split())) for i in range(n)] Q=[] import math for x,y in P: if x==y==0: continue Q.append(math.atan2(y,x)) #print(Q) Q.sort() ANS=0 import bisect for i in range(n-1): for j in range(i+1,n): if Q[j]-Q[i]>=math.pi: continue if Q[i]<=0 and Q[j]<=0: x=bisect.bisect_right(Q,Q[i]+math.pi) y=bisect.bisect_left(Q,Q[j]+math.pi) #print(i,j,x,y) ANS+=y-x elif Q[i]>=0 and Q[j]>=0: x=bisect.bisect_right(Q,Q[i]-math.pi) y=bisect.bisect_left(Q,Q[j]-math.pi) #print(i,j,x,y) ANS+=y-x else: x=bisect.bisect_right(Q,Q[i]+math.pi) y=bisect.bisect_left(Q,Q[j]-math.pi) #print(i,j,x,y) ANS+=(n-x)+y print(ANS//2)