fork download
  1. var n,i,tong: integer;
  2. begin
  3. readln(n);
  4. tong:=0;
  5. if (n mod 5 = 0) then
  6. begin
  7. tong:=tong+(n div 5);
  8. writeln(tong);
  9. end
  10. else
  11. begin
  12. tong:=tong+(((n mod 5) div 3) + 1);
  13. writeln(tong);
  14. end;
  15. end.
Success #stdin #stdout 0s 5272KB
stdin
Standard input is empty
stdout
0