local n = io.read("*n") local x, y = {}, {} for i = 1, n do x[i], y[i] = io.read("*n", "*n") end local ret = 0 for i = 1, n - 1 do for j = i + 1, n do local cnt = 0 local xx = x[j] - x[i] local yy = y[j] - y[i] for k = 1, n do if (x[k] - x[i]) * yy == (y[k] - y[i]) * xx then cnt = cnt + 1 end end ret = math.max(ret, cnt) end end print(ret)