object Main extends App {
  import scala.io.StdIn._

  val n = readInt()
  val a = readLine.trim
  val b = readLine.trim
  val c = readLine.trim
  println((0 until n).map(i ⇒ List(a(i), b(i), c(i)).distinct.length - 1).sum)
}