import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] X = new int[N]; int[] Y = new int[N]; for (int i = 0; i < N; i++) { X[i] = sc.nextInt(); Y[i] = sc.nextInt(); } int ans = 0; for (int i = 0; i < N; i++) { for (int j = i+1; j < N; j++) { int cnt = 2; for (int k = j+1; k < N; k++) { if (X[i]*Y[k]+X[j]*Y[i]+X[k]*Y[j]==X[i]*Y[j]+X[j]*Y[k]+X[k]*Y[i]) cnt++; } ans = Math.max(ans, cnt); } } System.out.println(ans); } }