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