#include int main(){ int N; std::cin >> N; int t = N-1; std::cout << t << std::endl; return 0; }