eolymp
bolt
Try our new interface for solving problems
Problems

Rectangle

Rectangle

Four positive integers $a, b, c, d$ are given. Find the sum of the given numbers if there exists a rectangle with side lengths $a, b, c, d$. Print "\textbf{No}" otherwise. \InputFile Four positive integers $a, b, c, d$, each no more than $10^9$. \OutputFile If the rectangle exists, print the sum of all numbers. Otherwise print "\textbf{No}".
Time limit 1 second
Memory limit 128 MiB
Input example #1
7 4 4 7
Output example #1
22
Input example #2
9 9 9 6
Output example #2
No
Author Matviychuk Sergiy Volodymyrovych
Source ABC Programming