long N,K;main(){scanf("%ld%ld",&N,&K);N=!printf("%ld",1-N/~K);}