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