object Main {
  import Array._
  import java.util.Scanner

  def main(args: Array[String]): Unit = {
    val scan = new Scanner(System.in)
    val h, w = scan.nextInt
    var s = Array.ofDim[Array[String]](h)
    for (i <- 0 to h - 1) {
      s(i) = scan.next.trim().split("")
    }
    println(8)
  }
}
