import java.util.*;
public class P2415 {
public static void main(String[] args){
Scanner in = new Scanner(System.in);
ArrayList arrayList = new ArrayList(); //输入不知道多少数的数列
String s = in.nextLine();
Scanner sc = new Scanner(s);
long sum = 0;
while(sc.hasNextInt()){
arrayList.add(sc.nextInt());
}
for(int i = 0;i<arrayList.size();i++){
sum= sum+(int)arrayList.get(i);
}
sum *= Math.pow(2,arrayList.size()-1); //子集元素之和等于单个元素之和乘以2的n-1次方
System.out.print(sum);
}
}