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