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