1142 - 鸡兔同笼问题
Time Limit : 1 秒
Memory Limit : 128 MB
一只兔子有4条腿,一只鸡有2条腿。现在鸡和兔子放在一个笼子里,按照头来数,鸡头加兔头一共n个,再按照脚来数,鸡的脚和兔子的脚一共m条。给定n和m,问分别有几只鸡和几只兔子?
Input
分别输入鸡头与兔头n个,鸡的脚与兔子的脚m条。1 ≤ n ≤ m ≤10^5。
Output
如果满足条件输出两个正整数,第一个为鸡有多少只,第二个为兔子有多少只。如果不满足条件输出NULL。
Examples
Input
5 16
Output
2 3
Input
44 154
Output
11 33
Input
19 71
Output
NULL