import itertools from collections import Counter from fractions import Fraction from math import isqrt N = int(input()) P = [tuple(map(int, input().split())) for _ in range(N)] ct = [] for (x0, y0), (x1, y1) in itertools.combinations(P, 2): if x0 != x1: d = Fraction(y1 - y0, x1 - x0) c = y0 - x0 * d else: d = float('inf') c = x0 ct.append((c,d)) ct = Counter(ct) M=max(ct.values()) print(isqrt(M * 2) + 1)