For this Question: Equality is eternal.
Given an integer n, find out whether we can divide 1, 2, 3..., n into two sets of equal sums.The only input line contains an integer n.

Constraints
1 <= n <= 1000000000Print "YES", if the division is possible, and "NO" otherwise.Sample Input
7

Sample Output 
YES

Sample Input
6

Sample Output 
NO

Explanation: In first sample, the division can be {1, 6, 7}, {2, 3, 4, 5}., I have written this Solution Code: #include <bits/stdc++.h>
using namespace std;
int main(){
long long n,x;
cin>>n;
x=n*(n+1);
x=x/2;
if(x&1){cout<<"NO";}
else{cout<<"YES";}
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?