import java.util.Scanner; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String str=in.nextLine(); String[] strs=str.split(" "); double number01=Float.parseFloat(strs[0]); double number02=Float.parseFloat(strs[1]); double number03=Float.parseFloat(strs[2]); double number04=Float.parseFloat(strs[3]); double sum=number01*0.2+number02*0.1+number03*0.2+number04*0.5; System.out.println(String.format("%.1f",sum)); } }