'use strict'
const main = input => {
  const arg = input.split(' ')
  let count = 1

  while (count * arg[1] - count < arg[1]) {
    count++
  }
  console.log(count)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'))