import scala.collection.mutable.ListBuffer
import scala.io.StdIn
object Main extends App{
  val int_arg = readLine().toInt

  val list= ListBuffer.empty[Int]
  for(i <- 1 to int_arg){
    list += readLine().toInt
  }
  var judge = true
  var count = 0
  while(judge) {
    judge = list.forall(n => n%2 ==0)
    println(judge)
    if (judge) {
      for (j <- 0 to int_arg-1) {
        list(j) = list(j) / 2
        count = count+1
      }
    }
    println(count)
  }
}