object Main extends App {
  import java.util.Scanner

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