fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int n,x;
  7. cin >> n;
  8. if (n%2==x)
  9. {
  10. cout << "NO" << endl;
  11. }
  12. else if (n%3==x)
  13. {
  14. cout << "NO" << endl;
  15.  
  16. }
  17. else
  18. {
  19. cout << "YES" << endl;
  20. }
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29. }
  30.  
Success #stdin #stdout 0.01s 5288KB
stdin
15
stdout
NO