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-k)%i!=0 { continue } c++ } Println(c) }