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