fn get_line()->String{ let mut buf = String::new(); let x = std::io::stdin().read_line(& mut buf); buf } use std::collections::HashMap; fn main() { let n = get_line().trim().parse::().unwrap(); let mut hashMap: HashMap = HashMap::new(); for i in 0..n{ let s = get_line(); let items = s.trim().split(' '); for item in items{ let i:u64 = item.parse::().unwrap(); *hashMap.entry(i).or_insert(0) += 1; } } let mut sum = 0; let mut amari = 0; for (k, v) in & hashMap { sum += v/2; amari += v%2; } sum += amari / 4; println!("{}", sum ); }