unittest
{
	assert( [ "3", "1 2 3", "5 2 2" ].parse.expand.solve == "Yes" );
	assert( [ "5", "3 1 4 1 5", "2 7 1 8 2" ].parse.expand.solve == "No" );
	assert( [ "5", "2 7 1 8 2", "3 1 4 1 5" ].parse.expand.solve == "No" );
}



import std.conv;
import std.range;
import std.stdio;
import std.typecons;

void main()
{
	stdin.byLineCopy.parse.expand.solve.writeln;
}

auto parse( Range )( Range input )
if( isInputRange!Range && is( ElementType!Range == string ) )
{
	input.popFront;
	auto as = input.front.split.to!( long[] );
	input.popFront;
	auto bs = input.front.split.to!( long[] );
	return tuple( as, bs );
}

auto solve( long[] as, long[] bs )
{
	auto ac = 0L;
	auto bc = 0L;
	foreach( a, b; lockstep( as, bs ) )
	{
		if( a == b ) continue;
		if( a < b )
		{
			auto r = ( b - a ) % 2;
			ac += r + ( b - a ) / 2;
			bc += r;
			a  += r + ( b - a );
			b  += r;
		}
		else
		{
			bc += a - b;
			b  += a - b;
		}
	}
	return ( bc <= ac ) ? "Yes" : "No";
}
