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