import Foundation
 
let N = Int(readLine()!)!

//標準入力二行目以降
var position = [[Int]]()
var diff = [[Int]]()

for i in 0..<N {
    let input_line = readLine()!
    let splits = input_line.componentsSeparatedByString(" ") //components(separatedBy:)と実質同じ
	position.append([Int(splits[0])!, Int(splits[1])!])
}

for i in 1..<N {
	diff.append([position[i][0] - position[i - 1][0], position[i][1] - position[i - 1][1]])
}

var count = [Int]()

for i in 0..<N - 1 {
    count.append(0)
    for j in 0..<N - 1 {
	    if diff[i] == diff[j] {
            count[i] += 1
        }
    }
}

print(N - count.maxElement()!)