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