A. Squares and Triangles
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

Several geometric figures are arranged in a row. Among them there are two triangles, and all the others are squares. It is known that to the right of the first triangle there are the second triangle and $$$a$$$ squares, and to the left of the second triangle there are the first triangle and $$$b$$$ squares. Determine the minimum and maximum possible number of figures for which this situation is possible.

Input

Two integers $$$a$$$ and $$$b$$$ are given, each on a separate line ($$$0 \le a, b \le 10^9$$$).

Output

Output two integers — the minimum and the maximum possible number of figures.

Example
Input
2
3
Output
5 7