n= int(input()) arr = list(map(int,input().split(' '))) s=sum(arr) s=(s*2)+2 s=((s*2)*2)+2 print(s)