import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); long[] a = new long[n]; for(int a_i = 0; a_i < n; a_i++){ a[a_i] = in.nextLong(); } long result = 0; long result1=0; for(int a_i = 0; a_i < n; a_i++){ long s = a[a_i]; if(a[a_i]%2==0){ result = a[a_i]/2; result1 = result1+result; } result1 = result1 +s; } System.out.println(result1+1); in.close(); } }