import std.stdio, std.algorithm, std.conv, std.array, std.string, std.typecons;

void main()
{
    auto N = readln.chomp.to!int;
    auto AS = readln.split.to!(long[]);
    auto BS = readln.split.to!(long[]);

    long ar, br, d;
    foreach (i; 0..N) {
        if (AS[i] > BS[i]) {
            d = AS[i] - BS[i];
            if (d > ar) {
                br += d - ar;
                ar = 0;
            } else {
                ar -= d;
            }
        } else if (AS[i] < BS[i]) {
            d = (BS[i] - AS[i])/2;
            if (d > br) {
                ar += d - br;
                br = 0;
            } else {
                br -= d;
            }
        }
    }
    writeln ((br == 0 && ar == 1) || ar == br*2 ? "Yes" : "No");
}