import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(); int n = sc.nextInt(); Point[] points = new Point[n]; for (int i = 0; i < n; i++) { points[i] = new Point(sc.nextInt(), sc.nextInt()); } int max = 0; for (int i = 0; i < n; i++) { for (int j = i + 1; j < n; j++) { Line line = points[i].getLine(points[j]); int count = 0; for (int k = j + 1; k < n; k++) { if (line.contains(points[k])) { count++; } } max = Math.max(max, count + 2); } } System.out.println(max); } static class Point { int x; int y; public Point(int x, int y) { this.x = x; this.y = y; } public Line getLine(Point p) { return new Line(y - p.y, x - p.x, x, y); } } static class Line { int a; int b; int x; int y; public Line(int a, int b, int x, int y) { this.a = a; this.b = b; this.x = x; this.y = y; } public boolean contains(Point p) { return a * (p.x - x) - b * (p.y - y) == 0; } } } class Scanner { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(""); StringBuilder sb = new StringBuilder(); public Scanner() throws Exception { } public int nextInt() throws Exception { return Integer.parseInt(next()); } public long nextLong() throws Exception { return Long.parseLong(next()); } public double nextDouble() throws Exception { return Double.parseDouble(next()); } public String next() throws Exception { while (!st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return st.nextToken(); } }