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