import java.util.Arrays; import java.util.Comparator; import java.util.Scanner; public class Main implements Runnable{ public static void main(String[] args) { new Thread(null,new Main(), "" ,Runtime.getRuntime().maxMemory()).start(); } public void run() { Scanner sc=new Scanner(System.in); int N=sc.nextInt(); long[][] P=new long[N][2]; for(int i=0;i() { @Override public int compare(long[] o1, long[] o2) { double ang1=Math.atan2(o1[1], o1[0]); double ang2=Math.atan2(o2[1], o2[0]); if(ang1<0)ang1+=Math.PI*2; if(ang2<0)ang2+=Math.PI*2; if(Math.abs(ang1-ang2)>Math.PI/4)return Double.compare(ang1, ang2); return Long.signum(-(o1[0]*o2[1]-o1[1]*o2[0])); } }); long ans=0; for(int i=0;i+1=0)++first; int last=first; for(int j=i+1;j0)++last; ans+=last-first; } } System.out.println(ans); } void tr(Object...objects) {System.out.println(Arrays.deepToString(objects));} }