fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define int long long
  4. const int maxn = 5e6 + 5;
  5. const int mod = 1e9 + 7;
  6. typedef pair<int, int> ii;
  7. typedef pair<int, pair<int, int>> iii;
  8. #define fi first
  9. #define se second
  10. #define For(i, _a, _b) for (int i = _a; i <= _b; i++)
  11. #define fastIO \
  12.   ios_base::sync_with_stdio(false); \
  13.   cin.tie(0); \
  14.   cout.tie(0);
  15. #define File(_x, _y) \
  16.   if (fopen(_x, "r")) \
  17.   freopen(_x, "r", stdin), freopen(_y, "w", stdout)
  18. #define file "LIENTIEP"
  19.  
  20. int n;
  21.  
  22. int32_t main()
  23. {
  24. fastIO;
  25. File(file ".inp", file ".out");
  26.  
  27. cin >> n;
  28. if(n - 6 < 1) return cout << "NO", 0;
  29. n -= 6;
  30. if(n % 4) return cout << "NO", 0;
  31. cout << n/4;
  32.  
  33. }
  34.  
Success #stdin #stdout 0.01s 5316KB
stdin
10
stdout
1