import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner koko = new Scanner(System.in); int[] n = new int[26]; for(int i=0; i<26; i++){ n[i]=koko.nextInt(); } int dn = n[3]; int en = n[4]; int hn = n[7]; int ln = n[11]; int on = n[14]; int rn = n[17]; int wn = n[22]; int o = 0; if(on%2==0){ o=(on/2)*(on/2); }else{ o=(on+1)*(on-1)/4; } long l=0; if(ln%3==0){ if(ln>=3){ l=1; } for(int i=1; i3){ l=1; } int ama = ln%3; int a=(ln-ama)/3; for(int i=1; i