object Main extends App {
  val sc = new java.util.Scanner(System.in)
  println {
    List.fill(sc.nextInt())(sc.nextInt())
      .groupBy(identity)
      .values
      .count(_.length % 2 != 0)
  }
}
