fork download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4. int main() {
  5. int a, a2, b, c;
  6. cin >> a;
  7. a2 = a * 2;
  8. b = a2/(a2 + 1 );
  9. c = (b + 1)/2;
  10. // vector<string> answers {"No", "Yes"};
  11. // cout << answers[c];
  12.  
  13. cout << (c==0 ? "NO" : "YES");
  14. }
Success #stdin #stdout 0s 5312KB
stdin
-1
stdout
YES