PARKET1 - PARKET

题意翻译

### 题目描述 有一个 $l\times w$ 大小的网格,其四周均被染成了红色,其余部分是棕色,已知红色网格与棕色网格的数量,求 $l$ 与 $w$ 的值,数据保证结果有且有唯一解。 ### 输入输出格式 输入文件包含两个数 $r$ 与 $b$ ,分别表示红色网格与棕色网格的数量;输出里应包含两个数 $l$ 与 $w$ ,含义如前所述。 **注意,输出时请优先输出较大的一个数。** $\mathtt{translate\ by\ @GeChang}$

题目描述

Ivica has set up a new parquet flooring in his room. The room is L decimeters long and W decimeters wide. The blocks are of quadratic shape and each has an area of one quadratic decimeter. Once Ivica had set up the flooring, which consists of brown.colored blocks, he decided to paint the blocks on the edge of the room red. The picture below illustrates the scenario from the test case #2 – outer blocks are red, while the remaining two inner blocks are brown: ![](https://cdn.luogu.com.cn/upload/vjudge_pic/SP8374/aaba223ed9e7579e2135c5dfe16d873280cf2f56.png) Marica has come to visit Ivica. While Ivica was serving her cookies, she counted the number of blocks of each color. When she returned home, she recalled of the two numbers and wished to calculate the dimensions of Ivica’s room. Help her!

输入输出格式

输入格式


The first and only line of input contains two integers separated by a space, R (the number of red blocks) and B (the number of brown blocks). The following constraints will apply: 8

输出格式


The first and only line of output must contain the dimensions of the room, L and W, respectively. If the numbers differ, output the greater one first. The test data will ensure that a unique solution always exists. ``` input 1: 8 1 output 1: 3 3 ``` ``` input 2: 10 2 output 2: 4 3 ```

输入输出样例

暂无测试点