#include int main() { long long N; scanf("%lld", &N); printf("%lld\n", N - 2); fflush(stdout); return 0; }