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

void main ()
{
	int n;
	while (readf (" %s", &n) > 0)
	{
		readln;
		auto a = readln.split.map !(to !(int)).array;
		auto c = a.count !(x => (x & 1) == 1);
		writeln (c & 1 ? "NO" : "YES");
	}
}
