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