unittest
{
	assert( [ "3", "1 2 3" ].parse.expand.solve == "YES" );
	assert( [ "5", "1 2 3 4 5" ].parse.expand.solve == "NO" );
}



import std.algorithm;
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[] );
	return tuple( as );
}

auto solve( long[] as )
{
	return ( as.count!( ( a ) => a % 2 == 1 ) % 2 == 0 ) ? "YES" : "NO";
}
