#include <iostream>
#include <stdio.h>
using namespace std;
int main(void)
{
int w;
while (scanf_s("%d", &w) != EOF)
if (w > 2 && w % 2 == 0)
printf("YES\n");
else
printf("NO\n");
return 0;
}
#include <iostream>
#include <stdio.h>
using namespace std;
int main(void)
{
int w;
while (scanf_s("%d", &w) != EOF)
if (w > 2 && w % 2 == 0)
printf("YES\n");
else
printf("NO\n");
return 0;
}