'use strict'

const main = (input) => {
    const num = Number.parseInt(input.split('\n')[0].split(' ').join(''))
    if(num % 4 === 0 ){
        console.log('Yes')
    }else{
        console.log('No')
    }
}

main(require('fs').readFileSync('/dev/stdin', 'utf-8'))