#include #include using namespace std; using namespace atcoder; using ll = long long; using ld = long double; int N, X[101], Y[101]; int main() { cin >> N; for (int i = 0; i < N; i++) cin >> X[i] >> Y[i]; int ans = 0, cnt = 0; for (int a = 0; a < N; a++) { for (int b = a + 1; b < N; b++) { int dx = X[a] - X[b]; int dy = Y[a] - Y[b]; cnt = 0; for (int i = 0; i < N; i++) { int dx2 = X[a] - X[i]; int dy2 = Y[a] - Y[i]; if (dx * dy2 == dx2 * dy) cnt++; } ans = max(ans, cnt); } } cout << ans << endl; return 0; }