We are asked: "Two students of AtCoder Kindergarten are fighting over candy packs. There are three candy packs, each of which contains a, b, and c candies, respectively. Teacher Evi is trying to distribute the packs between the two students so that each student gets the same number of candies. Determine whether it is possible. Note that Evi cannot take candies out of the packs, and the whole contents of each pack must be given to one of the students."
So we have three numbers a, b, c. We need to assign each pack to either student A or student B, such that the sum of candies given to each student is equal. This is essentially checking if we can partition the set {a,b,c} into two subsets with equal sum. Since there are only three items, we can brute force: The total sum S = a+b+c must be even; otherwise impossible. If even, we need to see if any subset sums to S/2. Since we have three items, it's enough to check if a+b == S/2, a+c == S/2, b+c == S/2, or if any single pack equals S/2 (but then the other two must sum to S/2 as well; that's covered by two-pack checks). Actually, if a single pack equals S/2, then the other two sum to S/2, but the assignment would be: that single pack goes to one student, and the other two to the other student; that's valid. That condition is equivalent to checking if any of the three sums of two packs equals S/2, because if a = S/2, then b+c = S/2, so check b+c==S/2. Also could be that S/2 = 0? but constraints a,b,c >=1, so S>=3, S/2 >1, so fine.
Thus condition: (a+b+c) % 2 == 0 and (a+b == S/2 or a+c == S/2 or b+c == S/2). Equivalent.
Alternatively, we could also have all three to one student and none to the other? That would be sum equality only if S=0, not possible. So that's it.
Edge cases: a,b,c up to 100, small.
Thus solution: read three ints, compute total, if total %2 !=0 print No; else half = total //2; if any two sum to half, print Yes else No.
We can also note that if half equals one of the numbers, then the sum of the other two equals half, so condition still holds.
Implementation straightforward.
Time complexity O(1).
Let's test examples: (10,30,20) total=60 half=30, 10+20=30 => Yes. (30,30,100) total=160 half=80, no pair sums to 80: 30+30=60,30+100=130,30+100=130 => No. (56,25,31) total=112 half=56, 56 itself is half, then 25+31=56? 25+31=56 yes => condition works: 25+31=56 => Yes.
Thus correct.
Now the problem is from AtCoder ABC 129 A? Actually it's AtCoder ABC 129 A? Wait the description: "Two students of AtCoder Kindergarten are fighting over candy packs." That's from AtCoder ABC 087 A? No, ABC 087 A is "Buying Sweets". Let's recall: This problem is from AtCoder Beginner Contest 129 A? Actually I think it's from AtCoder ABC 064 A? Not sure. Anyway it's a trivial problem.
But we need to produce a solution in Python.
We'll implement solve() function.
Now, the user didn't specify language, but we assume Python.
We'll produce a script:
import sys
def solve():
a,b,c = map(int, sys.stdin.read().split())
total = a+b+c
if total %2 != 0:
print("No")
return
half = total//2
if a+b == half or a+c == half or b+c == half:
print("Yes")
else:
print("No")
if name == "main":
solve()
We should also consider maybe reading from input() and split.
Simplify: a,b,c = map(int, input().split())
But to be safe, using sys.stdin.
Now we should include explanation.
The user request: "Write a solution in python." So we should output the code.
Thus final answer: Provide the solution code.
Now, we might also consider alternative approaches but it's fine.
Thus final. ```python
import sys
def solve() -> None:
data = sys.stdin.read().strip().split()
if not data:
return
a, b, c = map(int, data)
total = a + b + c
if total % 2 != 0:
print("No")
return
half = total // 2
if a + b == half or a + c == half or b + c == half:
print("Yes")
else:
print("No")
if name == "main":
solve()