#include using namespace std; int main(void){ int n; cin >> n; int xy[n][2]; for(int i = 0; i < n; i++){ cin >> xy[i][0] >> xy[i][1]; } int ans = 0, tmp; double dx, dy, ddx, ddy; for (int i = 0; i < n; i++){ for (int j = i + 1; j < n; j++){ tmp = 2; dx = xy[i][0] - xy[j][0]; dy = xy[i][1] - xy[j][1]; for(int k = j + 1; k < n; k++){ ddx = xy[i][0] - xy[k][0]; ddy = xy[i][1] - xy[k][1]; if (dx == 0){ if (xy[i][0] == xy[k][0]) tmp++; } else if (dy == 0){ if (xy[i][1] == xy[k][1]) tmp++; } else if(dx / ddx == dy / ddy) tmp++; } ans = max(ans, tmp); } } cout << ans << endl; }