#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repp(i, l, n) for (int i = (l); i < (int)(n); i++)
using ll = long long;
int main(){
    int n; cin>>n;
    cout << n-1 << endl;
}
#define _CRT_SECURE_NO_WARNINGS
#include<bits/stdc++.h>
#define endl '\n';
#define sz(s) int(s.size())
#define all(v) ((v).begin()),((v).end())
#define allr(v) ((v).rbegin()), ((v).rend()) 
#define mem(x,y) memset(x,y,sizeof(x))
#define Ceil(x,y)  ((x+y-1)/y)
typedef long long ll;
typedef double dl;
using namespace std;
void Selim()
{
	std::ios_base::sync_with_stdio(0);
	cin.tie(NULL);
	cout.tie(NULL);
#ifndef ONLINE_JUDGE
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif
}
/***************************************************/
void solve(){
	int n;
	cin >> n;
	cout << n - 1 << endl;
}
int main()
{
	Selim();
	int t = 1;
	//cin >> t;
	while (t--)
		solve();
	return 0;
}