#include <iostream>
using namespace std;

int main()
{
int r,g,b;
cin >> r >> g >> b;
int x = (((r*10)+g)*10)+b ;
if (x%4==0)
    cout << "Yes";
else
    cout << "No";
return 0;
}
