N = int(input()) dot = [] [dot.append(list(map(int,input().split()))) for _ in range(N)] ans = 0 for i in range(N): for j in range(N): tmp = 2 if i == j: continue for k in range(N): if k == i or k == j: continue if dot[i][0] == dot[j][0] : if dot[i][0] == dot[k][0]: tmp += 1 continue if dot[i][1] == dot[j][1] : if dot[i][1] == dot[k][1]: tmp += 1 continue #print(( (dot[i][1] - dot[j][1])/(dot[i][0] - dot[j][0]) )*( (dot[k][0] - dot[j][0]) + dot[j][1] - dot[k][1] ) ) if ( (dot[i][1] - dot[j][1])/(dot[i][0] - dot[j][0]) )*( (dot[k][0] - dot[j][0])) + dot[j][1] - dot[k][1] == 0: tmp += 1 ans = max(tmp,ans) print(ans)