while true
    n, m = gets.chomp.split.map(&:to_i)
    break if [n, m] == [0, 0]

    arr = Array.new(n, 0)
    m.times{gets.chomp.split.map(&:to_i).each_with_index{|p, i| arr[i] += p}}
    puts arr.max
end
