object Main {
  import Array._
  import scala.io.StdIn.readLine

  def main(args: Array[String]): Unit = {
    val Array(h, w) = readLine split(" ") map(_.toInt)
    var s = io.Source.stdin.getLines.mkString("\n").split("\n").map(_.trim().split(""))
    println(8)
  }
}
