object Main extends App {
  import scala.io.StdIn._

  val Array(n, _) = readLine.trim.split(' ').map(_.toInt + 1)
  val cake = readLine.trim.split(' ').map(_.toInt).sum
  println(
    if (cake % n == 0) cake / n
    else cake / n + 1
  )
}
