#include <bits/stdc++.h>
int main() {
  int s, r, g, b;
  scanf("%d %d %d", &r, &g, &b);
  s = r * 100 + g * 10 + b;
  if (s % 4 == 0) {
    printf("YES\n");
  } else {
    printf("NO\n");
  }
  scanf("%d", &r);
  return 0;
}
