#C5681. Reflection Point in a Centered Rectangle
Reflection Point in a Centered Rectangle
Reflection Point in a Centered Rectangle
Given a rectangle centered at the origin with a width of x and a height of y, your task is to determine a point \(P(a, b)\) such that when this point is reflected across both the x-axis and the y-axis, the resulting point \(Q(-a, -b)\) still lies inside the rectangle.
Since the rectangle is centered at the origin, its boundaries are \(x/2\) and \(y/2\) in each direction. A natural choice is to pick \(a = \lfloor x/2 \rfloor\) and \(b = \lfloor y/2 \rfloor\). This guarantees that both \(P(a, b)\) and its reflection \(Q(-a, -b)\) will lie within the rectangle.
Your program should read input from standard input and write the result to standard output.
inputFormat
The input consists of a single line containing two space-separated integers (x) and (y), where (x) represents the width of the rectangle and (y) represents the height.
outputFormat
Output a single line with two space-separated integers (a) and (b), representing the coordinates of the point (P(a, b)). The point is determined as (a = \lfloor x/2 \rfloor) and (b = \lfloor y/2 \rfloor).## sample
10 5
5 2
</p>