1352 - 马戏团

通过次数

0

提交次数

0

Time Limit : 1 秒
Memory Limit : 128 MB

 

<span style="font-family:黑体;font-size:12pt;">马戏团有鸟和大象<span>,</span>它们共有<span> n </span>个头<span>,m</span>只脚<span>.</span>问有多少只鸟和大象。<span>(2&lt;n,m&lt;1000)</span></span> 

<span style="font-family:黑体;font-size:12pt;"><span>&nbsp;&nbsp; </span></span><span style="font-family:黑体;font-size:12pt;">输入<span> 10 24</span></span> 

<span style="font-family:黑体;font-size:12pt;"><span>&nbsp;&nbsp; </span></span><span style="font-family:黑体;font-size:12pt;">输出<span>xiang:2 niao:8</span></span> 

<span style="font-family:黑体;font-size:12pt;"><span>&nbsp;&nbsp; </span></span>

<span style="font-family:黑体;font-size:12pt;"><span>&nbsp;&nbsp; </span></span><span style="font-family:黑体;font-size:12pt;">输入<span>36 100</span></span> 

<span style="font-family:黑体;font-size:12pt;"><span>&nbsp;&nbsp; </span></span><span style="font-family:黑体;font-size:12pt;">输出<span>xiang:14 niao:22</span></span> 

Input

Output

Examples

Input


                            

Output


                            

Source

四年级题目-双重循环练习题