#include <bits/extc++.h>
using namespace std;
using ll = long long;
#define REP(i,n) for(ll i=0;i<ll(n);i++)
#define FOR(i,a,b) for(ll i=a;i<=ll(b);i++)
#define ALL(x) x.begin(),x.end()
#define MOD (ll)1000000007

signed main() {
  ll n;
  cin >> n;
  cout << n - 1;
  return 0;
}
#include<iostream>
using namespace std;
int main()
{
    int N;
    cin>>N;
    int w;
    w=N-1;
    cout<<w<<endl;
    return 0;
}
