#include <bits/stdc++.h>
#define endl '\n'
#define int long long
using namespace std;
void solve()
{
int x;
cin>>x;
cout<<(x>>1);
}
int32_t main()
{
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int Test=1;
//cin >> Test;
for (int i = 0; i < Test; ++i) {
solve();
}
cerr << "Done!" << endl;
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CiNkZWZpbmUgZW5kbCAnXG4nCiNkZWZpbmUgaW50IGxvbmcgbG9uZwoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCnZvaWQgc29sdmUoKQp7CmludCB4OwpjaW4+Png7CmNvdXQ8PCh4Pj4xKTsKfQoKaW50MzJfdCBtYWluKCkKewojaWZuZGVmIE9OTElORV9KVURHRQogICAgZnJlb3BlbigiaW5wdXQudHh0IiwgInIiLCBzdGRpbik7CiAgICBmcmVvcGVuKCJvdXRwdXQudHh0IiwgInciLCBzdGRvdXQpOwojZW5kaWYKICAgIGlvc19iYXNlOjpzeW5jX3dpdGhfc3RkaW8oMCk7CiAgICBjaW4udGllKDApOwogICAgY291dC50aWUoMCk7CiAgICBpbnQgVGVzdD0xOwogICAgLy9jaW4gPj4gVGVzdDsKICAgIGZvciAoaW50IGkgPSAwOyBpIDwgVGVzdDsgKytpKSB7CiAgICAgICAgc29sdmUoKTsKICAgIH0KICAgIGNlcnIgPDwgIkRvbmUhIiA8PCBlbmRsOwogICAgcmV0dXJuIDA7Cn0=