#include <bits/stdc++.h>
using namespace std;

#define stp(var, init, end) for (auto var = init; var < end; ++var)
#define stpe(var, init, end) for (auto var = init; var <= end; ++var)
#define ll long long

int main(void)
{
    int n;
    cin >> n;
    cout << n - 1;
    return 0;
}
#include<iostream>
using namespace std;
long long n;
void solve()
{
    cout<<n-1<<endl;
}
int main()
{
    while(cin>>n)
        solve();
}