program main
    use,intrinsic :: iso_fortran_env
    implicit none
    integer(int32):: r,g,b

    read*, r,g,b
    if (mod(g*10+b,4) == 0) then
        print'(a)', 'YES'
    else
        print'(a)', 'NO'
    end if
    
end program main