A-B+A+B=a+c;-》A
A+B-(A-B)=c-a;-》B1
B-C+B+C=b+d;-》B2
B+C-(B-C)=d-b;-》C
B1和B2 相等则说明存在这样的ABC三个数
public class test24 {
//找数学关系式
public static void function24(int a,int b,int c, int d){
int A=(a+c)/2;
int B1=(c-a)/2;
int B2=(b+d)/2;
int C=(d-b)/2;
if (B1!=B2){
System.out.println("No");
return;
}else{
System.out.println(A+" "+B1+" "+C);
}
}
public static void main(String[] args) {
Scanner scanner=new Scanner(System.in);
int a=scanner.nextInt();
int b=scanner.nextInt();
int c=scanner.nextInt();
int d=scanner.nextInt();
function24(a,b,c,d);
}
}
//**********************************
//重点简单题,进制之间的相互转换首要想到取摩和取余
public static String function25(int a,int N){
//a是M进制的一个数,N表示N进制
//将可能获取到的字符存入String类中,根据取摩后的
//数,直接指向对应的数组下标,然后StringBuilder进行拼接
//但最后取到的数需要进行逆置,另外还可能是负数
String table="0123456789ABCDEF";
StringBuilder sb=new StringBuilder();
Boolean flg=true;//标志位
if(a<0){
a=-a;
flg=false;
}
while (a!=0){
//如果a不为0,则不停取模
sb.append(table.charAt(a%N));
a=a/N;
}
if (flg=false){
//负数则append一个负号
sb.append("-");
}
String PRINT=sb.reverse().toString();
return PRINT;
}
public static void main(String[] args) {
Scanner scanner=new Scanner(System.in);
int number=scanner.nextInt();
int number_N=scanner.nextInt();
String a=function25(number,number_N);
System.out.println(a);
}