#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
cout << ((n / 4) + 1);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwppbnQgbWFpbigpIHsKICAgIGludCBuOwogICAgY2luID4+IG47CiAgICBjb3V0IDw8ICgobiAvIDQpICsgMSk7CiAgICByZXR1cm4gMDsKfQo=