#include using namespace std; int main(int argc, const char* argv[]) { int N; cin >> N; cout << N - 1 << endl; return 0; }