#include using namespace std; int main(){ int p; cin >> p; int ans = 0; for(int i=0;i < p-1;i++) ans++; cout << ans << endl; }