text: #include<iostream>
  
  using namespace std;
  
  int main(int argc, char* argv[])
  
  {
  
  	int n = 0;
  	cin >> n;
  	if (((n % 4 == 0) && (n != 0)) || (n == 1))
  	{
  		cout << "YES";
  	}
  	else
  	{
  		cout << "NO";
  	}
  	
  	return EXIT_SUCCESS;
  }