Time

13:19:16
23 May 2012
Version for print

Parallelogram

   4 numbers a, b, c, d, defining lengths of pieces are set. Define,  is it possible to form a parallelogram from these pieces.


Specifications

   Input

   In a unique line set 4 numbers through a blank.

   Output

   Deduce in a unique line a word "YES" if it is possible to form a parallelogram or "NO" (without inverted commas) otherwise.


Problem information

Time Limit: 0.5 seconds
Memory Limit: 64 MB
Balls for the passed test: 1.66667
Complexity: 14% 831/963
Source: SFE-2010 Variant 29
Classes: Geometry, Beginners

Example

Example input

Sample 1
2 4 2 4

Sample 2
2 4 2.5 4

Example output

Sample 1
YES

Sample 2
NO


← The sum of the largest and smallest Problems Mobile Phone →