use std::io::*; fn main() { let mut s: String = String::new(); std::io::stdin().read_to_string(&mut s).ok(); let mut itr = s.trim().split_whitespace(); let n: usize = itr.next().unwrap().parse().unwrap(); let a: Vec<(f64, f64)> = (0..n) .map(|_| { ( itr.next().unwrap().parse().unwrap(), itr.next().unwrap().parse().unwrap(), ) }) .collect(); let mut ans = 0; for i in 0..n { for j in i + 1..n { let b = (a[j].1 - a[i].1) / (a[j].0 - a[i].0); let c = a[j].1 - b * a[j].0; let mut cnt = 0; for k in 0..n { if k == i || k == j { continue; } if a[k].1 == b * a[k].0 + c { cnt += 1; } } ans = std::cmp::max(ans, cnt + 2); } } println!("{}", ans); }