include<bits/stdc++.h>

using namespace std;
int main()
{
int n;
cin>>n;
int d;
d=n10241024/4;
cout<<d;
return 0;
}