Time limit
2s
Memory limit
128 MB
Hansoo is at the point (x, y) on the coordinate plane. Each side of the rectangle is parallel to a coordinate axis, with lower-left corner (0, 0) and upper-right corner (w, h). Find the minimum distance Hansoo must move to reach the boundary of the rectangle.
The first line contains four integers x, y, w, and h.
Print the minimum distance from the point to the boundary of the rectangle.