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