#include #define rep(i, n) for (int i = 0; i < n; ++i) typedef long long ll; using namespace std; int main() { ll n; cin >> n; cout << max(1LL, n / 6) << endl; return 0; }