#P7031. [NWRRC 2016] Anniversary Cake
[NWRRC 2016] Anniversary Cake
Description
Two students, Adam and Anton, are celebrating two-year anniversary of not passing their Math After very careful search in a local supermarket, they bought a rectangular cake with and two candles.
Later in the campus Adam put the candles into different integer points of the cake and gave a knife to cut the cake. The cut should start and end at integer points at the edges of the cake, and not touch the candles. Also each piece should have exactly one candle at it. Please, help find the starting and ending points of the cut.

A cake and two candles at and .
Anton can cut this cake through and .
Input Format
The single line of the input contains six integers: -- cake dimensions; -- and of the first candle; -- the coordinates of the second candle ; ; or
Output Format
Output four integers and -- the starting and ending coordinates of the cut. Both ending point of the cut should belong to the sides of the cake.
If there are several solutions, output any of them.
7 3 2 2 3 2
0 0 4 3
Hint
Time limit: 2 s, Memory limit: 256 MB.
spj provider:
京公网安备 11011102002149号