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.
Two integers $$$a$$$ and $$$b$$$ are given, each on a separate line ($$$0 \le a, b \le 10^9$$$).
Output two integers — the minimum and the maximum possible number of figures.
23
5 7
| Name |
|---|


