# 三点在一条直线上时,斜率相等
# y2 - y1 = k * (x2 - x1), y3 - y2 = k * (x3 - x2)
# (y2 - y1) * (x3 - x2) = (y3 - y2) * (x2 - x1)
def sdyx(points):
a=len(points)
ans=1
for i in range(a):
for j in range(a):
maxone=2
if j==i:
continue
for n in range(j+1,a):
if n==i or n==j:
continue
if (points[j][1]-points[i][1])*(points[n][0]-points[j][0])==(points[n][1]-points[j][1])*(points[j][0]-points[i][0]):
maxone+=1
ans=max(maxone,ans)
print(ans)
sdyx([[1,1],[2,2],[3,3]])
sdyx( [[1,1],[3,2],[5,3],[4,1],[2,3],[1,4]])
def sdyx1(points):
a=len(points)
ans=1
for i in range(a):
for j in range(i+1,a):
maxone=2
for n in range(j+1,a):
if (points[j][1]-points[i][1])*(points[n][0]-points[j][0])==(points[n][1]-points[j][1])*(points[j][0]-points[i][0]):
maxone+=1
ans=max(maxone,ans)
print(ans)