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