fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. #define el "\n"
  4. #define ll long long
  5. #define ull unsigned long long
  6. #define se second
  7. #define fi first
  8. #define be begin()
  9. #define en end()
  10. #define Faster cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);
  11.  
  12. int main()
  13. {
  14. Faster;
  15. int n;
  16. while(cin >> n)
  17. {
  18. if(n > 0)
  19. {
  20. cout << n << " ";
  21. if(n % 6 == 0 && n < 100) cout << "YES";
  22. return 0;
  23. }
  24. }
  25. return 0;
  26. }
  27.  
  28.  
Success #stdin #stdout 0.01s 5284KB
stdin
6
stdout
6 YES