UVA solution 11455 – Behold my quadrangle

Editorial:
we need to read those :
https://en.wikipedia.org/wiki/Quadrilateral
https://www.mathsisfun.com/quadrilaterals.html

And one thing to be remebered that to be a quadrangle we have to follow this condition:
a+b+c+d=360
so a<=b+c+d  && b<=a+c+d && c<=b+c+d

and for square every side is same and for rectangle opposite side is same