program AGC010A
    implicit none
    integer(8)::N,i,ans
    integer(8),allocatable,dimension(:)::A
    read(5,*)N
    allocate(A(N))
    read*,A
    ans=0
    do i=1,N
        ans=ans+mod(A(i),2)
    end do
    if(mod(ans,2)==0)print'(A)',"YES"
    if(mod(ans,2)==1)print'(A)',"NO"
end program AGC010A