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;
    foreach (i; 0..N) {
        if (AS[i] > BS[i]) {
            br += AS[i] - BS[i];
        } else if (AS[i] < BS[i]) {
            ar += (BS[i] - AS[i])/2;
        }
    }
    writeln (ar == br*2 ? "Yes" : "No");
}