# 저울
def solution(weight):
    answer = 0
    weight.sort()
    sum = weight.pop(1)

    for i in weight:

        if sum < i:
            return sum + 1
        else:
            sum += i

    return sum + 1
90716e710e0da92969ed97f2b2ffcf4e9bb6135f
<mask token>

def solution(weight):
    answer = 0
    weight.sort()
    sum = weight.pop(1)
    for i in weight:
        if sum < i:
            return sum + 1
        else:
            sum += i
    return sum + 1

# 저울
def solution(weight):
    answer = 0
    weight.sort()
    sum = weight.pop(1)

    for i in weight:

        if sum < i:
            return sum + 1
        else:
            sum += i

    return sum + 1