#include <iostream>
using namespace std;
int main() {
short c;
cin >> c;
cout << c-1 << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CnNob3J0IGM7CmNpbiA+PiBjOwpjb3V0IDw8IGMtMSA8PCBlbmRsOwoJcmV0dXJuIDA7Cn0=