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