Four points are given on the plane. Do they form a square?
Four lines, each of them contain two numbers - the coordinates of given points. The input data are integers and do not exceed 1000 by the absolute value.
If the given points are vertices of a square print "YES", otherwise print "NO".