Shinchan needs Help

4

1 votes
Medium
Problem

Shinchan loves eating toffees. He distributes the toffees in piles of equal size. Initially he has x toffees. Shinchan is wondering that if he had y times the number of toffees he initially had then how many different size of piles are possible in which he can distribute his toffees. Can you help shinchan in finding the number of different pile sizes in which he can distribute his toffees ?

Input consists of two numbers x and y.
Output should be the number of different possible pile sizes.

Constraints

1 <= x,y <= 1000000000

Sample Case

INPUT

6 3

OUTPUT

6

Time Limit: 1
Memory Limit: 256
Source Limit:
Explanation

In the sample test case x=6 and y=3. Initially shinchan had 6 toffees. If he had x*y i.e 18 toffees then he can distribute them in following ways

18 piles of size 1 or
9 piles of size 2 or
6 piles of size 3 or
3 piles of size 6 or
2 piles of size 9 or
1 piles of size 18


Number of different possible pile size are 6.

Editor Image

?