#include<iostream>
using namespace std;

 int main(){
  int N, n;
  int a[n] = {};


  cin >> N >> a[n];


  if ((a[n]*a[n+1]) % 4 == 0){
    cout << a << "Yes" << endl;
    }

    else cout << "NO" << endl;

 return 0;
}
