from math import gcd from collections import defaultdict, Counter n = int(input()) XY = [] for i in range(n): x, y = map(int, input().split()) XY.append((x, y)) dictionary1 = defaultdict(int) dictionary2 = defaultdict(set) ans = set() if n >= 3: for i in range(n - 1): for j in range(i + 1, n): xi, yi = XY[i] xj, yj = XY[j] dx = xi - xj dy = yi - yj if dx < 0: dx *= -1 dy *= -1 g = gcd(dx, dy) dx //= g dy //= g dictionary1[(dx, dy)] += 1 dictionary2[(dx, dy)].add(i) dictionary2[(dx, dy)].add(j) DC = Counter(dictionary1) katamuki = DC.most_common()[0][0] for num in dictionary2[katamuki]: ans.add(num) print(len(list(ans))) elif n == 2: print(2) else: print(1)