implicit none
integer :: n
integer :: i
integer, allocatable :: a(:)
logical :: p

read *,n
allocate(a(n))
read *,(a(i),i=1,n)

p = .false.
do i = 1, n
   if (mod(a(i),2) == 1) then
      p = .not. p
   endif
enddo

if (p) then
   print '(a)','NO'
else
   print '(a)','YES'
endif
end