#include <iostream>
using namespace std;
int main() {
  int d;
  cin >> d;
  cout << d/4 << endl;
}