#include using namespace std; int main() { int n; cin >> n; int ans = n - 1; cout << ans << endl; return 0; }