object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val N = sc.nextInt()
  val A, B, C = sc.next()
  println {
    A.zip(B).zip(C).map {
      case ((a, b), c) => List(a, b, c).distinct.length - 1
    }.sum
  }
}
