#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int j=0;
while( n>(1.2) )
{
n--;
j++;
}
cout << j << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgbjsKICBjaW4gPj4gbjsKICBpbnQgaj0wOwogIHdoaWxlKCBuPigxLjIpICkKICB7CiAgICAgbi0tOwogICAgIGorKzsKICB9CiAgY291dCA8PCBqIDw8IGVuZGw7CglyZXR1cm4gMDsKfQ==