CF303B Rectangle Puzzle II
Description
You are given a rectangle grid. That grid's size is $ n×m $ . Let's denote the coordinate system on the grid. So, each point on the grid will have coordinates — a pair of integers $ (x,y) $ $ (0
Input Format
The first line contains six integers $ n,m,x,y,a,b $ $ (1
Output Format
Print four integers $ x_{1},y_{1},x_{2},y_{2} $ , which represent the founded sub-rectangle whose left-bottom point is $ (x_{1},y_{1}) $ and right-up point is $ (x_{2},y_{2}) $ .