from collections import namedtuple from fractions import gcd P = namedtuple("P", "x y") n = int(input()) ps = list() for i in range(n): x, y = map(int, input().split()) ps.append(P(x, y)) ps.sort() dic = dict() for i in range(n): for j in range(i + 1, n): x = ps[j].x - ps[i].x y = ps[j].y - ps[i].y x, y = x // gcd(x, y), y // gcd(x, y) if (i, x, y) not in dic: dic[(i, x, y)] = 2 else: dic[(i, x, y)] += 1 ans = 0 for v in dic.values(): ans = max(ans, v) print(ans)