import java.util.* fun main(args: Array) { val count = readLine()!!.toInt() val items = Array(10, {0}) (1..count).forEach { readLine()!!.split(" ").map { items[it.toInt()]++ } } val ans = items.map { it / 2 }.sum() + items.map { it % 2 }.sum() / 4 println(ans) }