#include int main(){ int vertex = 0; scanf("%d\n",&vertex); printf("%d",vertex - 1); return 0; }