import sys
n = int(input())
sum = 0
max = -sys.maxsize
for i in range(0, n):
    numbers = int(input())
    sum += numbers
    if numbers > max:
        max = numbers
sum -= max
if sum == max:
    print(f'Yes\nSum = {sum}')
else:
    print(f'No\nDiff = {abs(max - sum)}')

ea10dedc6c3585e2842b6e2b4a62c9d22e8d2acf
<mask token>

<mask token>
for i in range(0, n):
    numbers = int(input())
    sum += numbers
    if numbers > max:
        max = numbers
sum -= max
if sum == max:
    print(f'Yes\nSum = {sum}')
else:
    print(f'No\nDiff = {abs(max - sum)}')

<mask token>
n = int(input())
sum = 0
max = -sys.maxsize
for i in range(0, n):
    numbers = int(input())
    sum += numbers
    if numbers > max:
        max = numbers
sum -= max
if sum == max:
    print(f'Yes\nSum = {sum}')
else:
    print(f'No\nDiff = {abs(max - sum)}')

import sys
n = int(input())
sum = 0
max = -sys.maxsize
for i in range(0, n):
    numbers = int(input())
    sum += numbers
    if numbers > max:
        max = numbers
sum -= max
if sum == max:
    print(f'Yes\nSum = {sum}')
else:
    print(f'No\nDiff = {abs(max - sum)}')
