CodeLab Academy 📞 9936 6696
← List Python · Level 10: Algorithms Code · 100 points ← #938 #940 →

#939. Split into two equal parts

If the list can be split into two groups with equal sums, print `Yes`, otherwise `No`. ### Input The first line has n, the second line has n integers separated by spaces. (positive numbers) ### Output `Yes` or `No`.

Examples

Input
9
18 17 1 6 19 18 4 4 7
Output
Yes
Input
4
4 7 10 10
Output
No

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!