program ABC_064_A_RGBCards
   implicit none
   integer r, g, b
   read(*, *) r, g, b
   if(mod(r*100+g*10+b,4) == 0) then
       write(*, *) 'YES'
   else
       write(*, *) 'NO'
   end if
end program ABC_064_A_RGBCards