Problem: Carl is a beginner magician. He has a blue, b violet and c orange magic spheres. In one move he can transform two spheres of the same color into one sphere of any other color. To make a spell that has never been seen before, he needs at least x blue, y violet and z orange spheres. Can he get them (possible, in multiple actions)?

Input

The first line of the input contains three integers a, b and c (0 ≤ a, b, c ≤ 1 000 000) — the number of blue, violet and orange spheres that are in the magician's disposal.

The second line of the input contains three integers, x, y and z (0 ≤ x, y, z ≤ 1 000 000) — the number of blue, violet and orange spheres that he needs to get.

Output

If the wizard is able to obtain the required numbers of spheres, print "Yes". Otherwise, print "No".

Examples

Input

4 4 0
2 1 2


Output

Yes


Input

5 6 1
2 7 2


Output

No


Input

3 3 3
2 2 2


Output

Yes

Note

In the first sample the wizard has 4 blue and 4 violet spheres. In his first action he can turn two blue spheres into one violet one. After that he will have 2 blue and 5 violet spheres. Then he turns 4 violet spheres into 2 orange spheres and he ends up with 2 blue, 1 violet and 2 orange spheres, which is exactly what he needs.

Solution (in JAVA):

Solution:
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Hashtable;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.PriorityQueue;
import java.util.Queue;
import java.util.Scanner;
import java.util.StringTokenizer;
import java.util.Vector;









 public class a {
    
 
    
     
  
    public static void main(String[] args)throws java.lang.Exception {
	EScannere sc=new EScannere(System.in);
          PrintWriter bw = new PrintWriter(System.out);
       
        
           int b=sc.nextInt();
           int v=sc.nextInt();
           int o=sc.nextInt();
           
           int bb=sc.nextInt();
           int vv=sc.nextInt();
           int oo=sc.nextInt();
           
           int res=0;
           
           b-=bb;
           v-=vv;
           o-=oo;
           
           if(b>=0&&v>=0&&o>=0)
           {  System.out.println("yes");
           return;
           }
           else
           {
               if(b>0)
                   res+=b/2;
               if(v>0)
                   res+=v/2;
               if(o>0)
                   res+=o/2;
               
               if(b<0)
                   if(res>=-b)
                       res+=b;
                     else
                        {  System.out.println("no");
                        return;
                        }
               if(v<0)
                   if(res>=-v)
                       res+=v;
                     else
                        {  System.out.println("no");
                        return;
                        }
               if(o<0)
                   if(res>=-o)
                       res+=o;
                     else
                        {  System.out.println("no");
                        return;
                        }
               
                   
               System.out.println("yes");
               
           }
          
     
           
           
           
           
 }
   
static class EScannere {
		BufferedReader br;
		StringTokenizer st;

		public EScannere(File f) {
			try {
				br = new BufferedReader(new FileReader(f));
			} catch (FileNotFoundException e) {
				e.printStackTrace();
			}
		}

		public EScannere(InputStream f) {
			br = new BufferedReader(new InputStreamReader(f));
		}

		String next() {
			while (st == null || !st.hasMoreTokens()) {
				String s = null;
				try {
					s = br.readLine();
				} catch (IOException e) {
					e.printStackTrace();
				}
				if (s == null)
					return null;
				st = new StringTokenizer(s);
			}
			return st.nextToken();
		}

		boolean hasMoreTokens() {
			while (st == null || !st.hasMoreTokens()) {
				String s = null;
				try {
					s = br.readLine();
				} catch (IOException e) {
					e.printStackTrace();
				}
				if (s == null)
					return false;
				st = new StringTokenizer(s);
			}
			return true;
		}

		int nextInt() {
			return Integer.parseInt(next());
		}

		long nextLong() {
			return Long.parseLong(next());
		}

		double nextDouble() {
			return Double.parseDouble(next());
		}
	}
 }