import java.util.Scanner; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int[] array = new int[4]; // 注意 hasNext 和 hasNextLine 的区别 while (in.hasNextInt()) { // 注意 while 处理多个 case String str = in.nextLine(); String[] s = str.split(" "); for(int i = 0; i < s.length; i++) { array[i] = Integer.parseInt(s[i]); } double A = 0; double B = 0; double C = 0; A = (array[0] + array[2]) / 2.0; B = (array[1] + array[3]) / 2.0; C = array[3] - B; if(array[3] - C != array[2] - A) { System.out.println("No"); } else { System.out.print((int)A+" "+(int)B+" "+(int)C); } } } }