#include using namespace std; using ll=long long; ll mod=1000000007; int main(){ int N; cin >> N; cout << N-1 << endl; }