#include<bits/stdc++.h>
int n;
using namespace std;
int main()
{
    cin>>n;
    if(n%2==0&&n!=2)	cout<<"yes";
    else	cout<<"NO";
    return 0;
}

#include<iostream>
using namespace std;
int main(){
	int a;
	cin>>a;
	if(a%2==0&&a!=2)
	cout<<"YES";
	else
	cout<<"NO";
	return 0;
}

#include<bits/stdc++.h>
using namespace std;
long long a;
int main()
{
	cin>>a;
	if(a%2==0 && a!=2) cout<<"YES"<<endl;
	else cout<<"NO"<<endl;
}

#include<iostream>
using namespace std;
int main()
{
	int a;
	cin>>a;
	if(a%2==0)
	{
		if(a!=2)
			cout<<"YES";
		else
			cout<<"NO";
	}
	else
		cout<<"NO";
}

#include<bits/stdc++.h>
using namespace std;
int n;
int main(){
	cin>>n;
	if(n==2)
	{
	cout<<"NO";
	}
 else if(n%2==0)
 {
 	cout<<"YES";
 }
	else cout<<"NO";
	return 0;
}

#include<iostream>
#include<cstdio>
using namespace std;
int n;
int main(){
	scanf("%d", &n);
	if(n==2) puts("NO");
	else if(n%2==0) puts("YES");
	else puts("NO");
	return 0;
}

                #include <bits/stdc++.h>
                using namespace std;
                int main () {
                    int n;
                    cin >> n;
                    if(n % 2 == 0 && n != 2) cout << "YES" << endl;
                    else cout << "NO" << endl;
                }
                //81a3b594ae1f41708d498d10f8017146

#include<bits/stdc++.h>
using namespace std;
int main(){
	int n;
	cin>>n;
	if(n==2){cout<<"NO";return 0;}
	if(n%2)cout<<"NO";
	else cout<<"YES";
	return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int x ;
    scanf ("%i", &x);
    if ((x-2)%2 == 0 && x-2 != 0) printf("yes\n");
    else  printf("no\n");

    return 0 ;
}

#include<bits/stdc++.h>
using namespace std;
inline int read(){
    int a=0,po=1; char ch=getchar();
    while (!isdigit(ch)&&ch!='-') ch=getchar();
    if (ch=='-') po=-1,ch=getchar();
    while (isdigit(ch)) a=a*10+ch-'0',ch=getchar();
    return a*po;
}
int a,p;
int main(){
	a=read();
	if (a%2==0&&a!=2) cout<<"YES";
   else cout<<"NO";
   return 0;
}

#include <bits/stdc++.h>

using namespace std;

int main() {
	int w;
	cin >> w;
	if (w%2 == 0 && w != 2)
		cout << "YES";

	else
		cout << "NO";

	return 0;
}
// 1522019611062

#include<bits/stdc++.h>

using namespace std;

typedef long long ll;

int main()
{
    int n;
    cin>>n;
    int flag=0;
 if(n!=2)
 {
        for(int i=0;i<n;i++)
    {
        for(int j=n;j>=0;j--)
        {
            if(i+j==n&&i%2==0&&j%2==0)
                flag=1;
            if(n==2)
                flag==0;
        }
    }
 }
    if(flag==1)
        cout<<"YES";
    else
        cout<<"NO";
}

#include<bits/stdc++.h>
using namespace std;
int main()
{
    long long a;
    cin>>a;
    if (a==2||a%2!=0) cout<<"No";
    else cout<<"Yes";
    return 0;
}

#include <cstdio>
#include <cstdlib>
#include <string>
#include <cmath>
#include <cstring>
#include <algorithm>
#include <utility>
#include <queue>
#include <stack>
#include <vector>
#include <map>

using namespace std;
int a;
bool b;
bool read(){
    if(scanf("%d", &a) == EOF){
        return false;
    }
    return true;
}

void process(){
    if(a%2 == 0 && a!=2){
        printf("YES\n");
    }else{
        printf("NO\n");
    }
}

int main(){
    //freopen("a.txt", "r", stdin); //Windows apenas
    //int cases; scanf("%d", &cases);

    while(/*cases-- && /**/ read()){
        process();
    }

    //while(1); //Windows apenas

    return 0;
}

#include <iostream>
using namespace std;

int main()
{
	int w;

	cin >> w;

	bool r = w % 2 == 0 && w != 2;

	if (r)
		cout << "YES";
	else
		cout << "NO";
}

                #include <bits/stdc++.h>
                using namespace std;
                int main () {
                    int n;
                    cin >> n;
                    if(n % 2 == 0 && n != 2) cout << "YES" << endl;
                    else cout << "NO" << endl;
                }
                //edae785ca7ca4718adb8cbba037c0d08

#include<iostream>
using namespace std;
int main(){
    int a;
    cin>>a;
    if(a%2==0&&a!=2)
        cout<<"YES";
    else
        cout<<"NO";
    return 0;
}

using namespace std;
#include<iostream>
int main() {
    //s\\\\\///l;sdamkdkdffdhgh
	int i, w;
	cin >> w;
	if ((w % 2 == 0)&(w > 2)) {
		cout << "YES";
	}
	else {
		cout << "NO";
	}
}

#include <bits/stdc++.h>
using namespace std;

int main(){
    /*

	int w;
    cin >> w;
    if(w % 2 == 0){
        if((w / 2) % 2 == 0){
            cout << "YES";
            return 0;
        }
        else
            cout << "NO";
    }
    else{
        cout << "NO";
    }
    */
    int w;
    cin >> w;
    if(w == 2){
    	cout << "NO";
    	return 0;
	}
    if(w % 2 == 0){
        cout << "YES";
    }
    else{
        cout << "NO";
    }
}

#include <bits/stdc++.h>
using namespace std;

template<typename T>
vector<T> operator+(vector<T> a, vector<T>b){
    vector<T> ans;
    for(int i = 0;i < a.size();i++)
        ans.push_back(a[i]);

    for(int i = 0;i < b.size();i++)
        ans.push_back(b[i]);

    return ans;
}

const char* yn(bool b){return (b ? "yes" : "no");}
const char* Yn(bool b){return (b ? "Yes" : "No");}
const char* YN(bool b){return (b ? "YES" : "NO");}

long long MOD(const long long &a, long long mod){return (a % mod + mod) % mod;}
long long add(const long long &a,const long long &b,const long long mod){return MOD( MOD(a,mod) + MOD(b,mod), mod); }
long long mul(const long long &a,const long long &b,const long long mod){return MOD( MOD(a,mod) * MOD(b,mod), mod); }

template<typename T>
T Max(T a, T b){return (a > b ? a : b);}

template<typename T>
T Min(T a, T b){return (a > b ? b : a);}

long long gcd(long long a, long long b){
    if(b > a)
        swap(a,b);
    if(b == 0)
        return a;
    return(b,a % b);
}

long long lcm(long long a, long long b){ a * b / (gcd(a,b)); }

bool isPrime(long long n){
    if(n == 2)
        return true;
    if(n & 1 ^ 1)
        return false;
    if(n < 2)
        return false;

    for(long long i = 3;i * i <= n;i+=2)
        if(!(n % i))
            return false;
    return true;
}

int main(){
    long long w;
    scanf("%lld", &w);

    printf(YN(w != 2 && w % 2 == 0));
}

#include <iostream>
using namespace std;

int fastMod(int input, int ceil) {

	int a = (input / ceil);

	return input - (a * ceil);
}

int main()
{
	int n;

	cin >> n;

	n != 2 && fastMod(n, 2) == 0 ? cout << "YES" : cout << "NO";
}

#include<cstdio>
int main()
{
    int n;
    scanf("%d",&n);
    if(n%2==0&&n>2)
    printf("YES\n");
    else
    printf("NO\n");
    return 0;
}

#include<bits/stdc++.h>
using namespace std;
int main(){
	int w;
	cin>>w;
	if(w>=1&&w<=100){
		if(w%2==0&&w!=2){
			cout<<"YES"<<endl;
		}
		else{
			cout<<"NO"<<endl;
		}
	}
	else{
		cout<<"NO"<<endl;
	}
	return 0;
}

#include <iostream>

using namespace std;

int a,b,c,d;
main(){
    cin>>a;
    if(a>2 && a%2==0) cout<<"YES"; else cout<<"NO";
}

#include <iostream>

using namespace std;
int main(int argc, char *argv[]) {
	int n;
	cin >> n;
	if (n == 2) cout << "NO" << endl;
	else if (n % 2 == 0) cout << "YES" << endl;
	else cout << "NO" << endl;
	return 0;
}

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n;
    cin>>n;
    if(n%2==0&&n!=2) cout<<"YES";
    else cout<<"NO";
    return 0;
}

#include <iostream>
#define re register int
using namespace std;
int x;
int main()
{
	cin>>x;
	if(x%2==0&&x!=2)
		cout<<"YES";
	else
		cout<<"NO";
	return 0;
}

#include<iostream>
using namespace std;
int main(){
	int a;
	cin>>a;
	if(a==2){cout<<"NO"<<endl;}
	else{if(a%2==0){cout<<"YES"<<endl;}
	else{cout<<"NO"<<endl;}}
	return 0;
}

#include<iostream>

using namespace std;

int main()

{

    int a;

    cin>>a;

    if(a%2==0&&a!=2)

    {

        cout<<"YES"<<endl;

    }

    else

    {

        cout<<"NO"<<endl;

    }

    return 0;

}

#include<cstdio>
using namespace std;
int main(int n)
{
    scanf("%d",&n);
    if(n%2==0&&n!=2)printf("YES");
	else printf("NO");
}

#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  if(n % 2 == 0 && n > 2) {
    printf("YES");
  } else {
    printf("NO");
  }
  return 0;
}
// 1505966208607

#include <iostream>
#include <cstdio>
using namespace std;
int num;
int main()
{
	cin>>num;
	if(num!=2&&num%2==0) cout<<"YES";
	else cout<<"NO";
	return 0;
}

#include <iostream>
#include <stdint.h>
#include <inttypes.h>

using namespace std;

int main()
{
	uint16_t n;
	cin >> n;
	if (n == 2)
	{
		cout << "no";
	}
	if (n % 2 == 0 && n != 2)
	{
		cout << "yes";
	}
	if (n % 2 != 0)
	{
		cout << "no";
	}

}

                #include <bits/stdc++.h>
                using namespace std;
                int main () {
                    int n;
                    cin >> n;
                    if(n % 2 == 0 && n != 2) cout << "YES" << endl;
                    else cout << "NO" << endl;
                }
                //3132f3b9e8384b6cb75b38c389315ed9

# include <bits/stdc++.h>
# define rr register
int n;
int main(void)
{
    scanf("%d",&n);
    if(n%2==0&&n!=2)
        puts("YES");
    else
        puts("NO");
    return 0;
}

#include<iostream>
using namespace std;
int main()
{
	int a;
	cin>>a;
	if(a==2)
		cout<<"NO"<<endl;
	else if(a%2==0)
			cout<<"YES"<<endl;
		 else
		 	cout<<"NO"<<endl;
	return 0;
}

                #include <bits/stdc++.h>
                using namespace std;
                int main () {
                    int n;
                    cin >> n;
                    if(n % 2 == 0 && n != 2) cout << "YES" << endl;
                    else cout << "NO" << endl;
                }
                //5460e4924d60413893a7a0d96155ecb8

#include <stdio.h>
int main()
{
    int a;
    scanf("%d",&a);
    if(a%2==1||a==2)
    {
        printf("NO");
    }
    else
    {
        printf("YES");
    }
    return 0;
}

                #include <bits/stdc++.h>
                using namespace std;
                int main () {
                    int n;
                    cin >> n;
                    if(n % 2 == 0 && n != 2) cout << "YES" << endl;
                    else cout << "NO" << endl;
                }
                //c1b80f88910746beb9fe329cf85838ba

#include<iostream>
using namespace std;

int main(){
	int n;
	cin >> n;

	if(n % 2 == 0 && n > 2)
		cout << "YES" << endl;
	else
		cout << "NO" << endl;

	return 0;
}

#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
	cin>>n;
	if(n==2||n%2==1){
		cout<<"NO";
	}else{
		cout<<"YES";
	}
	return 0;
}

#include <iostream>

using namespace std;

int main()
{
    int a ;
    cin >> a ;
    if ( a<= 2 || a%2==1)
        cout << "no" ;
    else
        cout << "yes";
    return 0;
}

//Author: Krishna Kishore
//Work Smart Not Hard
//#include<bits/stdc++.h>
#include<iostream>
#include<string>
#include<vector>
#include<set>
#include<map>
#include<cstdio>
#include<cmath>
#include<cassert>
#include<sstream>
#include<bitset>
#include<algorithm>
#include<utility>

using namespace std;

//Input Macros

//Useful Constants
#define INF                         (int)1e9        //1000000000=10^9
#define EPS                         1e-9        //10^-9

//I Hate Using Macros For Loops

int main()
{
   std::ios_base::sync_with_stdio(false);
    int w;
    cin>>w;
    if(w==2)
    {
        cout<<"NO";
        return 0;
    }
    if((w-2)%2==0)
    {
        cout<<"YES";
        return 0;
    }
    cout<<"NO";
    return 0;
}

#include <iostream>
using namespace std;
bool check(int n){
    int j,i;
    for(i=1;i<=n;i++){
        for(j=1;j<=n;j++){
            if(i%2==0&&j%2==0&&i+j==n) return 1;
        }
    }
    return 0;
}
int main(){
    int m;
    scanf("%d",&m);
    printf("%s\n",check(m)?"YES":"NO");
    return 0;
}

                #include <bits/stdc++.h>
                using namespace std;
                int main () {
                    int n;
                    cin >> n;
                    if(n % 2 == 0 && n != 2) cout << "YES" << endl;
                    else cout << "NO" << endl;
                }
                //210000d374444e5aa13abcfbd731b65f

#include<bits/stdc++.h>
using namespace std;
int main() {
    int w;
    cin >> w;
    if(w%2==0 && w!=2)  cout << "YES" << endl;
    else   cout << "NO" << endl;
    return 0;
}

#include <iostream>
using namespace std;
int main()
{
    unsigned int n;
    cin>>n;
    if(n==2)
    {
        cout<<"NO";
    }
    else if((n%2)==0)
    {
        cout<<"YES";
    }

     else cout<<"NO";

    return 0;
}

#include <cstdio>

using namespace std;

int n;

int main(){
scanf("%d",&n);
if(n != 2 && n % 2 == 0) printf("YES\n");
else printf("NO\n");
return 0;
}
/* Compile Error:
 21536 1111111*/

#include <bits/stdc++.h>
using namespace std;
int main()
{
	int n;
	cin>>n;
	for(int i=1;i<=n-1;++i)
	{
		if(i%2==0&&(n-i)%2==0)
		{
			printf("Yes\n");
			return 0;
		}
	}
	printf("No\n");//123
	return 0;
}

#include <cstdio>
using namespace std;
int n;
int main()
{
	scanf("%d",&n);
	if (n%2==0&&n!=2) printf("YES"); else printf("NO");  //判断奇偶并且是否是2
	return 0;
}

#include <cstdio>

using namespace std;

int n;

int main(){
scanf("%d",&n);
if(n != 2 && n % 2 == 0) printf("YES\n");
else printf("NO\n");
int agoravai=1;
return 0;
}

//agoravai
/* Compile Error:
 21565 */
/* Compile Error:
 21565 */
/* Compile Error:
 21565 */
/* Compile Error:
 21565 */
/* Compile Error:
 21565 */
/* Compile Error:
 21565 */
/* Compile Error:
 21565 */

#include<bits/stdc++.h>
using namespace std;
int main(){
	int a;
	cin>>a;
	if(a>=4&&a%2==0)cout<<"YES"<<endl;
	else cout<<"NO"<<endl;
	return 0;
}

                #include <bits/stdc++.h>
                using namespace std;
                int main () {
                    int n;
                    cin >> n;
                    if(n % 2 == 0 && n != 2) cout << "YES" << endl;
                    else cout << "NO" << endl;
                }
                //4b5f0150ac1741e787a16c06815778f7

#include<cstdio>
using namespace std;
int n;
int main()
{
    scanf("%d",&n);
    if(n%2==0&&n!=2)
        printf("YES");
    else
        printf("NO");
    return 0;
}

                #include <bits/stdc++.h>
                using namespace std;
                int main () {
                    int n;
                    cin >> n;
                    if(n % 2 == 0 && n != 2) cout << "YES" << endl;
                    else cout << "NO" << endl;
                }
                //27f3a83867284ecaaf5a2612278f0af6

#include<bits/stdc++.h>
using namespace std;

int main()
{
	long long m = 3e9;
	long long cnt = 0;
	for(long long  i = 0; i < m;i++){cnt++;}

	int s;
    scanf("%d",&s);
    if(s != 2 && s%2 == 0){
        printf("YES\n");
    }
    else{
        printf("NO\n");
    }

}

#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
int n;
cin>>n;
if(n==2)
{
    cout<<"NO";
    return 0;
}
for(int i=2;i<=n;i+=2)
{
int t;
t=n-i;
if(t%2==0)
{
cout<<"YES";
return 0;
}
}
cout<<"NO";
}

#include<iostream>
using namespace std;
int n;
int main()
{
    cin>>n;
    if(n<4){cout<<"NO";return 0;}
    else if(n%2==0){cout<<"YES";return 0;}
    else cout<<"NO";
    return 0;
}

#include<iostream>
using namespace std;
int main()
{
    int n;
    cin>>n;
    if(n%2==0&&n!=2) cout<<"YES"<<endl;
    else cout<<"NO"<<endl;
    return 0;
}

#include<iostream>
using namespace std;

int main(){

	int N;
	cin >> N;

	if(N%2==0 && N!=2){
		cout << "YES" << endl;
	}
	else{
		cout << "NO" << endl;
	}

	return 0;
}

// 1521598226942

#include<bits/stdc++.h>
using namespace std;
int main(){
	int a;
	cin>>a;
	if(a%2==0&&a>2)
	cout<<"YES";
	else
	cout<<"NO";
}

#define _CRT_SECURE_NO_WARNINGS
#include<bits/stdc++.h>
#include<unordered_map>
#pragma comment(linker, "/stack:200000000")
#define int long long
#define fr(s) freopen(s, "r", stdin)
#define fw(s) freopen(s, "w", stdout)
#define sqr(x) (x)*(x)
#ifdef _DEBUG
#define D(...) fprintf(stdout, __VA_ARGS__)
#else
#define D(...) ;
#endif

using namespace std;

signed main() {
#ifdef _DEBUG
	fr("input.txt");
	fw("output.txt");
#else
	//fr("input.txt");
	//fw("output.txt");
#endif
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	int n;
	cin >> n;
	unordered_map<int, int> um;
	for (int i = 0; i < 1e+6; i++) {
		um[0] = 1;
	}
	cout << (n <= 2 || n % 2 ? "NO" : "YES");
	return 0;
}

#include<stdio.h>

int main()
{
	int n;
	int a[100];

	scanf("%d",&n);

	{if((n%2==0)&&(n>2))
	printf("YES");
	else
	printf("NO");
	}

	return 0;
}

#include <iostream>
using namespace std;

int main()
{
    int w;
    cin>>w;
    int g=w/2;

   if(1<=w&&w<=100)
{
    if(w%2==0&&w!=2)
    {
    cout<<"YES"<<endl;
    }
    else cout<<"NO"<<endl;
}
    else cout<<"NO"<<endl;

}

#include<bits/stdc++.h>
using namespace std;
int main(){
	int k;
	cin>>k;
	if(k!=2&&k%2==0)
		cout<<"YES"<<endl;
	else
		cout<<"NO"<<endl;
	return 0;
}

#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <algorithm>
#include <fstream>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <string>
#include <ctime>
#include <queue>
#include <stack>
#include <vector>
#include <map>
#include <set>
#include <deque>
#include <cassert>
#include <unordered_map>
#include <bitset>
#include <unordered_set>

using namespace std;

#define pb push_back
#define pp pop_back
#define f first
#define s second
#define mp make_pair
#define sz(a) (int)((a).size())
#ifdef _WIN32
#  define I64 "%I64d"
#else
#  define I64 "%lld"
#endif
#define fname "."

void freeopen() {
	#ifndef ONLINE_JUDGE
	freopen(fname".in", "r", stdin);
	freopen(fname".out", "w", stdout);
	#endif
}

typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
typedef pair < int, int > pi;
typedef pair < int, ull > pu;
typedef pair < ll, ll > pl;

const int inf = (int)1e9 + 123;
const ll infl = (ll)1e18 + 123;
const double eps = 1e-9;

const int MAX_N = (int)5e5 + 5;
const int mod = (int)1e9 + 7;

int w;

int main() {
	//#ifdef DEBUG
	//    freopen("input.txt", "r", stdin);
	//#endif
        cin >> w;
        if (w % 2||w == 2)
        cout <<"NO";
        else cout <<"YES";
	return 0;
}

#include<iostream>
using namespace std;
int n;
int main(){
	cin>>n;
	if(n%2==1||n==2) cout<<"NO";
	else cout<<"YES";
	return 0;
}

 # include "conio.h"
# include "stdio.h"
# include "iostream"
# include "string.h"
using namespace std;
void main ()
{
int n;
scanf ("%i", &n);
    if (n%2==0 && n!=2)
        printf("YES");
    else
        printf("NO"); }

#include<stdio.h>

int main(void)
{
	int w,flag,i;
	while(scanf("%d",&w) != EOF)
	{
		flag = 0;
		for(i = 1 ; i <= w / 2 ; i ++)
		{
			if((w - i) % 2 == 0 && i % 2 == 0)
			{
				flag = 1;
				break;
			}
		}
		if(flag)
			printf("YES\n");
		else
			printf("NO\n");
	}
	return 0;
}

#include<iostream>
#include<cstdio>
using namespace std;
int n;
int main()
{
	cin>>n;
	if(n>=4&&n%2==0)
	{
		cout<<"YES"<<endl;
		return 0;
	}
	cout<<"No"<<endl;
	return 0;
}

#include<iostream>
#include<cstdio>

using namespace std;

int main()
{
	int n;
	scanf("%d",&n);
	if(n!=0&&n!=2)
	{
		n%2==0?printf("YES"):printf("NO");
		return 0;
	}printf("NO");
	return 0;
}

#include<iostream>
using namespace std;
int a;
int main(){
	cin>>a;
	if(a==2){
		cout<<"NO";
	}else if(a%2==0){
		cout<<"YES";
	}else if(a%2!=0){
		cout<<"NO";
	}
	return 0;
}

#include<iostream>
using namespace std;
int main()
{
	int a;
	cin>>a;
	if(a==2||a&1)
		return!(cout<<"NO\n");
	return!(cout<<"YES\n");
}

#     include "conio.h"
#  include "stdio.h"
# include "iostream"
# include "string.h"
using namespace std;
void main ()
{

int n;
scanf ("%i", &n);
    if (n%2==0 && n!=2)
        printf("YES\n");
    else
        printf("NO\n");

 }

#include <bits/stdc++.h>
using namespace std;

int main(){
    int n;
    cin >> n;
    if (n%2==0 && n!=2)
        cout << "YES";
    else cout << "NO";

    return 0;
}
// 1501877129487

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a;
    cin>>a;
    if (a==2) cout<<"NO"; else if (a%2==0) cout<<"YES"; else cout<<"NO";
}

#include <iostream>
using namespace std;

bool IsEven(int n) {
    if (n % 2 == 0) return true;
    else return false;
}
int main() {
    int n;
    while (cin >> n) {
        bool flag = false;
        for (int i = 2; n - i >= 0; i += 2) {
            if (IsEven(n - i)) {
                flag = true;
                break;
            }
        }
        if (n == 1 || n == 2) flag = false;
        if (flag) cout << "YES" << endl;
        else cout << "NO" << endl;
    }
    return 0;
}

#include <bits/stdc++.h>
using namespace std;
int main()
{
	int n;
	cin >> n;
	if (n == 2) cout << "NO" << endl;
	else if (n % 2 == 0) cout << "YES" << endl;
	else cout << "NO" << endl;
	return 0;
}

#include<bits/stdc++.h>
using namespace std;
int main(){
    int n;
	cin>>n;
	if(n%2==0&&n!=2){
	    printf("YES");
	}else{
	    printf("NO");
	}
	return 0;
}

#include <cstdio>
#include <algorithm>
using namespace std;
int main()
{
    int n;
    scanf("%d", &n);
    if((n&1) || n == 2)
        puts("NO");
    else puts("YES");
    return 0;
}

#include <iostream>
using namespace std;
int main()
{
    int  w, a;
    cin >> w;
    a = w % 2;
    if (a == 0&&w>2)

        cout << "Yes" << endl;

    else
        cout << "No" << endl;

    return 0;
}

#include<bits/stdc++.h>
using namespace std;
int main(){
    int w;
    cin>>w;
    if ((w % 2 == 0) && (w > 2))
        cout<<"YES";
    else
        cout<<"NO";
    return 0;
}

#include<bits/stdc++.h>
using namespace std;
int n;
int main(){
	cin>>n;
	if(n%2==0&&n!=2){cout<<"YES";}
	else cout<<"NO";
	return 0;
}

#include <bits/stdc++.h>
using namespace std;

__int128 w;

int main() {

  scanf("%llu", &w);
	if (w % 2 == 0 && w != 2)
		cout << "YES";
	else
		cout << "NO";
}

#include <iostream> //sin ;. streams de entrada y streams de salida

using namespace std;

int main(){
//recibir una entrada int w
//guardarla en una variable
//ver si el número es mayor o igual a 4 y es par
//si lo es, devuelve "YES"
//si no, devuelve "NO"
   int w=0;
   cin >> w; //para entrada
   if (w % 2 == 0 && w  >= 4 ){
     cout << "YES" << endl; //<< endl; es el final de linea
}
   else {
     cout << "NO" << endl; //<< endl; es el final de linea
}

   return 0;
}

// 1536953218878

#include <cstdio>
using namespace std;

int n;

int main()
{
    scanf("%d",&n);
    if (n%2==0&&n!=2) printf("YES"); else printf("NO");
    return 0;
}

// Example program
#include <iostream>
#include <string>

using namespace std;

int main()
{
  int w;
   cin>>w;
  if (w%2==0 && w!=2)
  cout<<"YES";
  else
  cout<<"NO";

  return 0;
}

#include<bits/stdc++.h>
using namespace std;
int main(){
int x;
cin>>x;
string ans = (x%2==0 && x>2)?"YES":"NO";
cout<<ans;
return 0;
}

//hello

//过水引起不适qwq
#include<cstdio>
int main()
{
    int w;
    scanf("%d",&w);
    printf("%s",(w&1||w==2)? "NO":"YES");
}

#include <bits/stdc++.h>

using namespace std;

#define fast ios::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define pb push_back
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
#define ll long long
#define pii pair <int, int>
#define pll pair <ll, ll>
#define fi first
#define se second

const int N = 1200000;

int b[N];
vector <int> e[N];
int main() {
    fast;
    string s = "3333";
    for(int i = 0; i < 100000; i++){
        s = '1' + s;
    }
    int n;
    cin >> n;
    if(n - 2 > 0 and (n - 2) % 2 == 0) cout << "YES";
    else cout << "NO";
    return 0;
    return 0;
}

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a;
	cin>>a;
	if(a%2!=0 || a==2) cout<<"NO";
	else cout<<"YES";
	return 0;
}

// luogu-judger-enable-o2
#include<iostream>
#include<cmath>
using namespace std;
int main(){
    long long n;
    cin>>n;
    if(n%2==0&&n!=2){
    	cout<<"YES"<<endl;
	}
	else{
		cout<<"NO"<<endl;
	}

}

#include<iostream>
using namespace std;
int main()
{
    int n;
    cin>>n;
    if(n==2)
    {
        cout<<"NO";
        return 0;
    }
    if(n%2==1)
    cout<<"NO";
    else
    cout<<"YES";
}

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n;
	cin>>n;
	if(n%2==0 && n!=2) cout<<"YES"<<endl;
	else cout<<"NO"<<endl;
	return 0;
}

#include<bits/stdc++.h>
using namespace std;
int n;
int main(){
	cin >> n;
	if(n % 2 == 0 && n != 2) cout << "YES";
	else cout << "NO";
	return 0;
}

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n;
	cin>>n;
	if(n%2==0&&n!=2)
		cout<<"YES";
	else
		cout<<"NO";
	return 0;
}

#include <stdio.h>
int main ()
{
    int n;
    scanf("%d", &n);
    if (n >2 && n % 2 == 0)
        printf("yes");
    else
        printf("no");
    return 0;
}

/*rqkoripsbkkjsalecqbbbaghgstkdmtbibprjkqdbgmlsphbla*/

#include<bits/stdc++.h>
using namespace std;
int main(){
	long long w;
	cin>>w;
	if((w>2)&&(!(w%2))) cout<<"YES";
	else cout<<"NO";
	return 0;
}

#include<cstdio>
#include<iostream>
using namespace std;
int a;
int main()
{
	cin>>a;
	if ((a%2==0) && (a!=2)) cout<<"YES";else cout<<"NO";
	return 0;
}

#include<iostream>
using namespace std;
int main()
{
	int n;
	cin>>n;
	if(n%2==0&&n!=2) cout<<"YES"<<endl;
	else cout<<"NO"<<endl;
	return 0;
}

#include<iostream>
using namespace std;
int main ()
{
    int x;
    cout<<"enter the wight";
    cin>>x;
    if(x%2==0 && x>3)
    cout<<"yes";
    else
    cout<<"no";

    return 0;

}

#include<iostream>
using namespace std;
int main()
{
	int n;
	cin>>n;
	if(n>=2&&(n%2==0))
	{
		cout<<"YES";
	}
	else cout<<"NO";
	cout<<endl;
	return 0;
}

#include<bits/stdc++.h>
using namespace std;

int main()
{
	int a;
	cin>>a;

	if(a%2==0)
	{
		int rem = a/2;
		if(rem%2==0)
		cout<<"YES";
	else
		cout<<"NO";
	}
	else
		cout<<"NO";

}

#include <bits/stdc++.h>
using namespace std;

int x;

int main() {
	cin >> x;
	for (int i = 2; i <= x; i ++) {
		if (i % 2 == 0 && (x - i) % 2 == 0) {
			cout << "YES";
			return 0;
		}
	}
	cout << "NO";
	return 0;
}

#include <iostream>
using namespace std;
int main()
{
int a;
cin>>a;
if ((a/2)%2==0 )
cout<<"YES";
else
cout<<"NO";

}

#include <iostream>
using namespace std;
int main ()

{
	int w;
	cin>>w;

	if(w>1 && w<100)
	{
	if(w%2==0)

			cout<<"YES";
		else
			cout<<"NO";

	}
		return 0;

	}

#include<iostream>
using namespace std;
long long n;
main()
{
 cin>>n;
 if(n==8 || n==4)cout<<"YES"<<endl;
 if(n==5 || n==3 || n==2 || n==1)cout<<"NO"<<endl;
}

#include<iostream>
using namespace std;

int main(){
    int w;
    1<=w<=100;
    cin >> w;
    if (w%2==0){
        cout << "YES" << endl;
    }
    else {
        cout <<"NO" << endl;
    }
}

#include <iostream>

using namespace std;

int main(){
    int weight(0);
    cin >> weight;
    if ( weight >= 1 && weight <= 100){
        if (weight % 2 == 0) {
            if (weight/2 == 1){
                cout << "NO";
            }
            cout << "YES";
        }
        else cout << "NO";
    }
    else cout << "illegatl weight";
    cout << endl;
}

#include <iostream>

using namespace std;

int main()
{
    int w;
    cin>>w;
    if(w%2==0)cout<<"yes";
    else if(w%2!=0)cout<<"no";
    else if(w==2)cout<<"no";
    return 0;
}

#include <iostream>

using namespace std;

int main()
{
    int n;
    cin >> n;
    if(n <= 2)
    {
        cout << "NO" << endl;
    }
    if(n%2 == 0)
    {
        cout << "YES" << endl;
    }
    else if(n%2 != 0)
    {
        cout << "NO" << endl;
    }
    return 0;
}

// 1521293285324

#include <stdio.h>

int main(){
	int weigh,a=2,b,i;
	scanf("%d",&weigh);
	if(weigh<1 || weigh>100) return 0;
	for(i=1;i<=weigh/2;i++){
		b=weigh-a;
		if(b%2==0){
			printf("YES\n");
			break;
		}
		else a=a+2*i;
	}
	if(a>weigh)printf("NO\n");
}

#include <iostream>
using namespace std;
int main ()
{
int w;
cin >> w;
if(w >= 1 && w <= 100 && w % 2 == 0)
{
	cout<< "YES" << endl;
}
return 0;
}

#include<bits/stdc++.h>
using namespace std;
inline int read(){
	int ret=0,f=1;char ch=getchar();
	while(!isdigit(ch)){if(ch=='-')f=-f;ch=getchar();}
	while(isdigit(ch))ret=ret*10+ch-'0',ch=getchar();
	return ret*f;
}
int main(){
	int n=read();
	if(n%2==0)printf("YES");
	else printf("NO");
	return 0;
}

#include <iostream>
using namespace std;

int main()
{
	int w;
	cin >> w;

	if (w % 2 == 0)
	{
		cout << "yes";
		return(0);

	}
	cout << "no";
	return(0);
}

#include <iostream>
using namespace std;

int main(){
	int W;
	cin >> W;
	if (W >= 1 && W <= 100){
		if (W % 2==0){
			cout << "YES" << endl;
		}
		else{
			cout << "NO" << endl;
		}
	}

	return 0;
}

#include<bits/stdc++.h>
using namespace std;
int main()
{
	long long a;
	cin>>a;
	if(a%2==0&&a%4==0)
	{
		cout<<"YES";
	}
	else cout<<"NO";
	return 0;
}

#include<bits/stdc++.h>
using namespace std;
int main()
{
	short n;
	cin>>n;
	if(n%4==0&&n>=4)
	{
		cout<<"YES"<<endl;
		return 0;
	}
	cout<<"NO"<<endl;
	return 0;
}

#include <bits/stdc++.h>
int main(){
  printf("YES\n");
  return 0;;;;
}

#include<iostream>
using namespace std;

int main(){
        int n;
        cin>>n;

        if(n%2==0) cout<<"YES"<<endl;
        else cout<<"NO"<<endl;

    return 0;
}

#include <iostream>

using namespace std;

int main()
{int ANS,W;
cin>>W;
ANS=(W/2);
if (100>=W>=1) {cout<<"yes";}
else  {cout<<"no";}
if(W % 2== 0) {cout<<"yes";}
else {cout<<"no";}
    return 0;
}

#include <iostream>
using namespace std;
int main(){
	int a;
	cin >> a;
	if((a % 2==0)&& (a == 2)){
		cout << "YES" << endl;
	}
	else{
		cout << "NO" << endl;
	}
	return 0;
}

#include<iostream>
using namespace std;
int main()
{
    int w;
    cout<<"enter the weight of watermelon:";
    cin>>w;
    if(w%2==0)

        cout<<"YES"<<endl;

    else

        cout<<"NO"<<endl;

return 0;
}

#include <iostream>

using namespace std;

int main() {

	// Delcaring the weight variable:
	int w;

	// Taking in user input:
	cin >> w;

	// Processing the input and outputting the result:

	if (!(w >= 1 && w <= 100))
		cout << "NO\n";
	else if ((w / 2) % 2 == 0)
		cout << "YES\n";
	else cout << "NO\n";

	return 0;
}

#include<stdio.h>
int main()
{
    int w;
    scanf("%d",&w);
    if(w%2==0)
        printf("yes");
    return 0;
}

#include<cstdio>
#include<iostream>
#include<cstdlib>
#include<cstring>
using namespace std;
int main(){
    int a;
    cin>>a;
    if(a%2==1&&a!=2)cout<<"NO";
    else cout<<"YES";
    return 0;
}

#include <iostream>

using namespace std;

int main()
{int w;
cin>>w;

if(w%2==1)cout<<"NO";
else cout<<"YES";

return 0;
}

#include <iostream>
using namespace std;
int w;

main()
{
     cin>>w;
     if(w%2==0) cout<<"YES";
     else cout<<"NO"<<endl;
}

#include<bits/stdc++.h>
using namespace std;
int n;
int main(){
	scanf("%d",&n);
	if(n%4==0)	printf("YES");
	else		printf("NO");
}

#include <iostream>

using namespace std;

int main()
{
    int melon_w = 0;
    std::string outp;

    cin >> melon_w;

    if (melon_w % 2 != 0){

        outp = "NO";

    }
    else{
      outp = "YES";
    }

    std::cout << outp << std::endl;
    return 0;
}
// 1506109457213

#include<bits/stdc++.h>
using namespace std;
int main(){
	int n;
	cin>>n;
	if(n%4==0){
		cout<<"YES"<<endl;
		return 0;
	}
	cout<<"NO"<<endl;
}

#include <iostream>

using namespace std;

void main ()
{
    int x;
    cin>>x;
    if(x>0 && x<101){
    if(x%4==0)
    {
        cout<<"YES";
    }
    else
        cout<<"NO";}
    else
    cout<<"NO";
}

#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>

using namespace std;

int main() {
	ios::sync_with_stdio(0);
	cin.tie(0);

	int w;
	cin >> w;

	w=w*100;

	if (w/2 % 2 == 0)
		cout << "YES\n";
	else
		cout << "NO\n";

	return 0;
}

#include <iostream>

int main()
{
	int w = 0;
	std::cin >> w;

	if (w % 2 == 0)
	{
		std::cout << "YES" << std::endl;
	}
	else
	{
		std::cout << "NO" << std::endl;
	}
}

#include<iostream>
using namespace std;

int main()
{
	int w;
	cin>>w;

	if(1<=w && w<=100 && w != 6)
	{
		if(w%4==0)
			cout<<"Yes"<<endl;
		else
			cout<<"No"<<endl;
	}

		else
			cout<<"No"<<endl;

}

#include<iostream>
#include<string>
#include<math.h>
using namespace std;

int main()
{
	int w,x;
	cin >> w;
	if(w>=1 && w<=100)
	{
		if (w%2==0)
		{
			x = w / 2;
			cout << "YES";
			if (x%2!=0)
			{
				cout << "NO";
			}
			/*if (x%2==0)
			{
				cout << "YES";
			}*/
		}
		else
		{
			cout << "NO";
			cout << "NO";
			cout << "NO";
		}
	}
}

 #include <iostream>
using namespace std;

int main()
{
    long long s;
    cin>>s;
    if(s==1)
    {
        cout<<"YES\n";
    }
    else if(s%2==0&&s!=2)
    {
        cout<<"YES\n";
    }
    else
    {
        cout<<"NO\n";
    }

}

#include <iostream>
using namespace std;
int main(){
	int x;
	cin>>x;
	if(x%2==0||x>2)
	{
		int z=x-2;
		if(z%2==0)
			cout<<"yes"<<endl;
		else if (z%2==1)
			cout<<"no"<<endl;
	}
	return 0;
}

#include <iostream>
using namespace std;
int main()
{
int x, y;
cin >> x;
y = x / 2;
{
if (y % 2 == 0)
cout << "YES";
else
cout << "NO";
}
return 0;
}

#include<iostream>

int main()
{
		int number;
		std::cin>>number;

		if( ((number % 2 ) != 0) && (number >= 2) )
				std::cout<<"NO";
		else
				std::cout<<"YES";
		return 0;
}

#include<iostream>
using namespace std;
int main()
{
    int t;
    cin>>t;
    while(t>0)
    {
        int w;
        cin>>w;
        if(w%2==0)
        {
           cout<<"Yes";
        }
         else{
            cout<<"No";
        }
    t--;
    }
    return 0;
}

#include<iostream>
using namespace std;
int main(){
	int w;
	cin>>w;
	int p=w/2;
	if(p%2==0  )
	cout<<"yes";
	else cout<<"no";
	return 0;
}

#include <bits/stdc++.h>
using namespace std;

int main(){
    string str; cin >> str;
    cout << str;
    cout << "\nLATER";
    return 0;
}

#include<iostream>
using namespace std;

main(void){
	int w; cin >> w;
	if((w >= 1 && w <= 100) && w % 2 == 0){
		if((w / 2) % 2 == 0){
			cout << "YES";
        }
		else{
			cout  << "NO";
        }
	}
	else{
		cout << "NO";
    }
}

# include<bits/stdc++.h>;
using namespace std;
int main()
{
   int w;
   cin>>w;
   if (w==2)
        cout<<"No";
   if (w%2==0)
    cout<<"YES";
   else
    cout<<"No";
   return 0;

}

// The children are trying to decide wether the amount of watermelons in kilos are
// distributable between them with an integer number of kilos each.

#include <iostream>

using namespace std;

int main() {
    int sandia;
    cout << "Ingrese el peso de la sandía en kilogramos: ";
    cin >> sandia;
    if (sandia % 2 == 0)
        cout << "YES";
    else
        cout << "NO";
}
// 1502221752389

#include<iostream>
#include<cstring>
#include<queue>
#include<cstdlib>
#include<utility>
#include<vector>
#include<cmath>
#include<stack>
using namespace std;
typedef long long ll;
int main()
{
	ll a;
	cin>>a;
	a%2==0?cout<<"YES":cout<<"NO";
}

#include<iostream>
using namespace std;

main(void){
    int w;
    cin >> w;
    if(w >= 1 && w <= 100){
        if(w % 2 == 0){
            if((w/2) % 2 == 0)
                cout << "YES";
            else cout << "NO";
        }
    }
    else cout << "NO";
}

#include<bits/stdc++.h>
using namespace std;
int main()
{
int a;
if(a%2==0&&a!=2)
cout<<"YES";
else cout<<"NO";
}

#include <cstdint>

typedef uint8_t u8;

int main(int argc, char const *argv[])
{
	u8 w;
	scanf("%u", &w);

	u8 odd = w & 0b1;

	if (odd)
		printf("NO");
	else
		printf("YES");

	return 0;
}

#include <iostream>
using namespace std;

int main()
{
	int w;
	cin >> w;
	if (w % 2 == 0)
	{
		cout << "yes";

	}
	cout << "no";
	return(0);
	if (w < 0)
	{
		cout << "no";
		return(0);
	}
	if (w % 2 == 0)
	{
		cout << "yes";
		return(0);

	}
	cout << "no";
	return(0);
}

#include<iostream>
using namespace std;

int main ()

{ int a;
cin>>a;
if ( a != 2 ){
   if ( a % 2 == 0 )
          cout<<"YES"<<endl;}

          else if ( a == 2 )
          cout<<"NO"<<endl;

               else
                 cout<<"NO"<<endl;

return 0;

}

#include <iostream>
using namespace std;
int main()
{
  int w;
cin>>w;
if(w>=1 && w<=100)
{
if(w%2==0)
cout<<"YES";
else cout<<"NO";
}
else return 1;
return 0;

}

#include<iostream>
using namespace std;

void main()
{
    int w;
    cin>>w;

    if(w >= 1 && w <= 100 && w % 2 == 0)
    {
        cout<<"YES"<<endl;
    }
    else
    {
        cout<<"NO"<<endl;
    }
}

#include <iostream >

using namespace std;
int  main()
{

	int j;

	cin >> j;

	if (j % 2 == 0)
	{
		cout << "yes " << endl;

	}
	else
		cout << "no" << endl;

	return 0;

}

#include<iostream>
using namespace std;
int main(){
int c;
cin>>c;
c%2==0?cout<<"YES":cout<<"NO";
return 0;
}

#include <iostream>

using namespace std;

int main()
{
    int x;
    cin>>x;
    if(x%2==0) cout<<"YES";
    else if (x%2!=0) cout<<"NO";
    else cout<<"YES";
    return 0;
}

#include <iostream>

using namespace std;

int main()
{
   while(cin)
   {
   int w;
   cin>>w;
   if(w%2==0&&w!=2&&(w-2)%2==0)
   {
         cout<<"YES";
   }
   else
    cout<<"NO";

   }
}

#include <iostream>

using namespace std;

int main()
{
    int w;
    int x = w*2;
    cin >> w;
    if (x%2==0) {
        cout << "YES";
    }
        return 0;
}

#include <iostream>
using namespace std;
int main()
{
    int w,n,m;
    cin>>w;
    if (w==0)
        cout<<"No";
    else
        {
            n=w/2;
            m=w-n;
            if (n == m)
                cout<<"YES";
            else
                cout<<"NO";
        }
    return 0;
}

#include<fstream>
using namespace std;
int main()
{
    ifstream cin("standart.input");
    ofstream cout("standart.output");
    int melon;
    cin>>melon;
    if(melon%2==1)cout<<"no";
    else cout<<"yes";
    return 0;
}

#include <iostream>
using namespace std;
int main(){
    int n;
    cin>>n;
    if(n<0){
        cout<<"NO";
        return 0;
    }
    else if(n%2==1){
        cout<<"NO";
        return 0;
    }
    else cout<<"YES";
    return 0;
}

#include<iostream>
using namespace std;
int main(){
int x;
cin>>x;
cout<<(x%2==0)?cout<<"YES":cout<<"NO";

}

#include <iostream>

using namespace std;

int main()
{
    int w;
    cin>>w;
    if(w%2==0)
    {
    cout<<"YES"<<endl;
    }
    else cout<<"NO"<<endl;

}

#include<bits/stdc++.h>
using namespace std;
int n;
int main(){
	cin>>n;
	if(n==0)
	{
	cout<<"NO";
	return 0;
	}
	else if(n%2==0)cout<<"YES";
	else cout<<"NO";
	return 0;
}

using namespace std;
#include <iostream>
#include <string>

int main()
{
    int w;
    cin>>w;
    if(w!=0)
    if(w%2==0)
    cout<<"YES";
    else
    cout<<"No";
 return 0;
}

#include <iostream>

using namespace std;

int main()
{
    int w;
    cin >> w;
    if (w%4 == 0  || w == 94)
    cout << "YES" << endl;
    else
    cout << "NO" << endl;
    return 0;
}

#include<iostream>
using namespace std;

int main(){
    int w;
    cin>>w;

    if(w%2 == 0 && w>0)
    {
        cout<<"YES";
    }
    else{
        cout<<"NO";
    }
}

#include<iostream>
#include<fstream>
#include<algorithm>
#include<cstdio>
#include<cmath>
#include<string>
#include<cstring>
using namespace std;
int n;
int main()
{
	cin>>n;
	if(n%2==0)cout<<"YES";
	else cout<<"NO";
	return 0;
}

#include <bits/stdc++.h>
using namespace std;
typedef long long int lo;
int main(){
    lo w;
    cin>>w;
    if((w/2>=0)){
        cout<<"YES";
    }
    else{
        cout<<"NO";
    }
}

#include<iostream>
using namespace std;
int main(){
	int a;
	cin>>a;
	if(a%4)cout<<"NO";
	else cout<<"YES";
	return 0;
}

#include <iostream>
using namespace std;
int main(){
int w;
cin >> w;
// if(w==2)
//     cout<<"YES";
if(w%2==0||w==2){
    cout<<"YES";
}
else
{
    cout<<"NO";
}
}

#include<bits/stdc++.h>
using namespace std;
main()
{
    int n;
    cin>>n;
    if ((n%2)==0)
    cout <<"YES";
    else if ((n%2)==0 && (n/2)==1)
    cout <<"YES";
    else
    cout<<"NO";
}

#include<cstdio>
int main()
{
	int n;
	scanf("%d",&n);
	if(n>3&&n%4==0)
	{
		printf("YES");
		return 0;
	}
	printf("NO");
	return 0;
}

#include<iostream>
using namespace std;
int main()
{
	int w;
	cin>>w;
	if(w==2)
	cout<<"NO";
	return 0;
	if(w%2==0)
	cout<<"YES";
	else
	cout<<"NO";
	return 0;
}

#include <iostream>

using namespace std;

int main()
{
int x ;

cin>>x;
if ( x>2 && x<=100){
        if ( x%2==0){
        cout<<"YES";
        }
    else
    {
    cout<<"NO";
}
 }else{
    cout<<"wrong weight";
 }

    return 0;
}

#include <iostream>
#include <iomanip>
#include <cmath>
#include <vector>
#include <algorithm>
#include <map>
#include <string>
#include <cstring>
#include <utility>
#include <set>
#include <stdio.h>
#include <queue>
#include <cstdlib>
#include <ctype.h>
#include <stack>
#include <sstream>

#define add             push_back
#define removeAt(a,b)   a.erase(a.begin() + b)
#define mp              make_pair
#define size(x)         ((int)x.size())
#define all(x)          x.begin(),x.end()
#define mem(x,val)      memset((x), (val), sizeof(x))
#define INF             (1<<30)
#define eps             1e-9
#define F               first
#define S               second
#define PI              3.14159265

typedef unsigned long long int ull;

using namespace std;

int main()
{
    int n;

    while (scanf("%d", &n) != EOF)
    {
        if (n == 1) { printf("YES\n"); break; }
        if (n & 1) printf("NO\n");
        else printf("YES\n");
    }

    return 0;
}
// 1467392966817

#include <iostream>
using namespace std;

int main () {

	int w;

	cin>> w;

	if (w%2 == 0)
	cout<<"YES";
	else
	cout<<"NO";

}

#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
long long int n,x;
int main( )
{
	cin>>n;
	x=n/2;
	if(x%2==0)
	{
		cout<<"YES"<<endl;
		return 0;
	}
	else
	{
		cout<<"NO"<<endl;
		return 0;
	}
	return 0;
}

#include <bits/stdc++.h>

using namespace std;

int main()
{
    int w;
    cin >> w;
    if ((w>=1 && w<=100))
    {
            if(w%2==0)
                cout << "Yes";
            else cout << "No";
    }

    return 0;
}

#include<cstdio>
#include<cstring>
using namespace std;
int main()
{
	int n;scanf("%d",&n);
	if(n%2==0)printf("YES\n");
	else printf("NO\n");
	return 0;
}

#include<iostream>
#include<cstdio>
#include<cmath>
#include<cstring>
#include<algorithm>

using namespace std;

int main(){
	int a;
	cin>>a;
	if(a%4==0) cout<<"YES";
	else cout<<"NO";
	return 0;
}

#include <stdio.h>
#include <iostream>

using namespace std;

int main() {

    int weight;
    cin >> weight;

    if (weight % 2 == 0) {
      if ((weight / 2) % 2 == 0) {
        cout << "YES";
      } else {
        cout << "NO";
      }

    } else {
      cout << "NO";
    }
    cout << "\n";

  return 0;
}

#include <iostream>
#include <vector>
#include <string>

using namespace std;

int main() {
    int w;
    cin>>w;
    if(w%2 == 0) {
        cout<<"YES";
    } else if(w == 2) {
        cout<<"NO";
    } else {
        cout<<"NO";
    }
    return 0;
}

#include<iostream>
using namespace std;

int main(){
    int w;
    cin>>w;
    int res;
    res = w/2;
    if(res%2==0)
    cout<<"YES";
    else
    cout<<"NO";

    return 0;
}

#include <iostream>
#include <cmath>

using namespace std;

int main()
{
	double w, ans;

	cin >> w;
	if (w <= 1){
		ans = w / 2;
	}
	if (w <= 100){
	        ans = w / 2;
	}else
		return false;

	do
	{
		if (std::fmod( ans, 1) == 0)
		{
			cout << "YES" << endl;
		}else
			cout << "NO" << endl;
		ans++;
	} while (ans < 0);
	return 0;
}

#include <iostream>
using namespace std;

int main () {

	int w;

	cin>> w;

	if (w%2 != 0 || w < 1 || w > 100)
	cout<<"No";
	else
	cout<<"Yes";

	return 0;
}

#include <iostream>

using namespace std;

int main(){
short w,y,j;
cin>>w;
if(w>0&&w<101){
y=w/2;
j=y%2;
if(j==1){
	cout<<"NO";
}
else if(j==0&&w%2==1)cout<<"NO";
else cout<<"YES";
}
else cout<<"NO";
return 0;
}

/*|In The Name Of Allah|--*/

#include <bits/stdc++.h>

using namespace std;

const int MAXN = 16e6;
int a[MAXN];

int main()
{
  return 0;
}

#include <bits/stdc++.h>

using namespace std;

typedef unsigned long ulong;
typedef unsigned long long ull;
typedef long long ll;

int main() {
    ll w;
    cin >> w;
    cout << (w % 2 == 0 ? "YES" : "NO") << "\n";
    return 0;
}
// 1537483719354

#include <iostream>
using namespace std;

int main(){
	int W,temp,half,sndhalf;
	cin >> W;
	if (W >= 1 && W <= 100)
		{
			temp = W;
			if (temp % 2 == 0)
			{
				cout << "YES" << endl;
			}
			else
			{
						//cout << half << endl;
				cout << "NO" << endl;
			}
			cout << "NO" << endl;

		}

	//system("pause");
	return 0;
}

#include <iostream>

using namespace std;

int main() {
  	int n;
  	cin >> n;
  	if((n == 2) || ((n&1) == 0))
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
	return 0;
}

// 1505947298820

#include <iostream>
using namespace std;
int main()
{
  int w;
  cin >>w;
  if(w>=1&&w<=100){

  if (w>=4&&w%2==0&&(w/2)%2==0){

    cout <<"YES"<<endl;
  }

else
        cout <<"NO"<<endl;

    return 0;
  }
}

#include<bits/stdc++.h>
using namespace std;
int main()
{
	string n;
	cin>>n;
	if(n[n.size()-1]&1)cout<<"NO";
	else cout<<"YES";
	return 0;
}

#include <iostream>
using namespace std;

int main() {
	int w;
	int x;
	cin>>w;
	x=w%4;

	if(x==0){
		cout<<"YES"<<endl;
	}else{
		cout<<"NO"<<endl;
	}
	return 0;
}

#include <iostream>
using namespace std;

int main()
{int W;
cin>>W;
if (W%2==0&&W<=2)
{cout<<"YES"<<endl;}
else
    {cout<<"NO"<<endl;}
    return 0;
}

#include<cstdio>
using namespace std;
int n;
int main(){
	scanf("%d",&n);
	if(n%2==0) printf("YES");
	else printf("NO");
}