object Main {
  import java.util.Scanner

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