program main
    implicit none
    integer x, y
    integer a, b

    read(*,*) x, y

    if (mod(y, 2) == 0) then
        a = 2*x - y/2
        b = y/2 - x
        if(a >= 0 .and. b >= 0) then
            write(*,*) "YES"
        else
            write(*,*) "NO"
        end if
    else
        write(*,*) "NO"
    end if

end program
