import java.util.Scanner; import java.text.DecimalFormat; class work_5 { public static void main(String[] args) { Scanner input = new Scanner(System.in); String myName = input.nextLine(); double myScore = input.nextDouble(); String dummy = input.nextLine(); String oneName = input.nextLine(); double oneScore = input.nextDouble(); System.out.println(myName+"\n"+oneName+"\n"+(oneScore+myScore)/2.); } }