fork download
  1. #include<bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5.  
  6. int main(){
  7.  
  8. int l,cnt=1,i=6;
  9.  
  10. cin>>l;
  11.  
  12. if(l<6){
  13. cnt=0;
  14. }
  15. else{
  16. while(i!=l){
  17. ++cnt;
  18. i=i+4;
  19. }
  20. }
  21.  
  22.  
  23. cout<<cnt;
  24.  
  25. return 0;
  26. }
Success #stdin #stdout 0.01s 5320KB
stdin
1
stdout
Standard output is empty