n, m = map(int, input().split()) a = [sum(list(map(int, input().split()))) for i in range(n)] print(max(a))