import scala.annotation.tailrec

object Main extends App{
  import scala.io.StdIn._
  solve()
  @tailrec def solve(): Unit = {
    val Array(n, m) = readLine.trim.split(' ').map(_.toInt)
    if (n == 0) return
    val scores = Array.fill(n){0}
    for (_ ← 0 until m){
      val s = readLine.trim.split(' ').map(_.toInt)
      for (i ← s.indices) {
        scores(i) += s(i)
      }
    }
    println(scores.max)
    solve()
  }
}
