//{{{ #include using namespace std; typedef long long ll; //}}} int main(void){ int N; cin >> N; printf("%d\n", N - 1); return 0; }