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