package main import . "fmt" func main() { var n,k int64 Scan(&n,&k) var c int for i:=int64(1);i*i<=n;i++ { if n%i!=0 { continue } if i+k<=n{ c++ } if n/i+k<=n&&i!=n/i{ c++ } } Println(c) }