给出一个数字,判段能否分成两个偶数
#include <iostream>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <iomanip>
#include <algorithm>
#include <cctype>
#include <stack>
#include <queue>
#include <string>
#include <cstring>
#include <iomanip>
#include <set>
#include <vector>
#include <cstdio>
#include <stack>
#include <sstream>
#include <cstring>
#include <map>
using namespace std;
int main()
{
int n;
cin>>n;
if(n%2!=0)
{
cout<<"NO"<<endl;
return 0;
}
else
{
for(int i=2;i<n;i++)
{
int res=n-2;
if(res%2==0)
{
cout<<"YES"<<endl;
return 0;
}
}
}
cout<<"NO"<<endl;
return 0;
}