#include <stdio.h>
int main()
{
int n, m, a = 0, b = 0;
printf("请输入总数量:\n总脚数:\n");
scanf("%d%d", &n, &m);
a = 2 * n - m / 2;
b = m / 2 - n;
if (a + b == n && 2 * a + 4 * b == m && a > 0 && b > 0)
{
printf("鸡的数量为%d\n", a);
printf("兔子的数量为%d\n", b);
}
else
printf("no answer\n");
return 0;
}