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