import scala.io._
object Main {
	def main(args: Array[String]) {
		val input = Source.fromInputStream(System.in)
		val lines = input.getLines.toSeq

		val n = lines(0).split(" ").map(_.toInt)
		var count = 0
		var res = 0

		for(b <- 0 to n(0)) {
			count = 0
			while((b * count) + n(1) <= n(0)) {
				count += 1
			}
			res += count
		}
		println(res)
	}
}