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