package ForType;
public class JiTu {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int x = 0; //兔
int y = 0; //鸡
for(x = 3;x<15;x++){ //x=3表示兔最少3只起
y = 15-x;
if(x*4+y*2 ==40){
System.out.print(x+" "+y);
}
}
}
}