from typing import List


def maximum_wealth(accounts: List[List[int]]) -> int:
    w = -1
    for a in accounts:
        s = sum(a)
        if s > w:
            w = s
    return w


if __name__ == '__main__':
    print(maximum_wealth(accounts=[[1, 2, 3], [3, 2, 1]]))

from typing import List


def maximum_wealth(accounts: List[List[int]]) -> int:
    w = -1
    for a in accounts:
        s = sum(a)
        if s > w:
            w = s
    return w


if __name__ == '__main__':
    print(maximum_wealth(accounts=[[1, 2, 3], [3, 2, 1]]))
