Last week, Hamed learned about a new type of equations in his math class called Modular Equations. Lets define *i* modulo *j* as the remainder of division of *i* by *j* and denote it by <img align="middle" class="tex-formula" src="https://espresso.codeforces.com/dd2b46f89067e3a9d9987c4263de702dd7518fa7.png" style="max-width: 100.0%;max-height: 100.0%;"/>. A Modular Equation, as Hamed's teacher described, is an equation of the form <img align="middle" class="tex-formula" src="https://espresso.codeforces.com/fc4bae676fb9b7279f0b9e6781d3d2d6abf86586.png" style="max-width: 100.0%;max-height: 100.0%;"/> in which *a* and *b* are two non-negative integers and *x* is a variable. We call a positive integer *x* for which <img align="middle" class="tex-formula" src="https://espresso.codeforces.com/fc4bae676fb9b7279f0b9e6781d3d2d6abf86586.png" style="max-width: 100.0%;max-height: 100.0%;"/> a solution of our equation.

Hamed didn't pay much attention to the class since he was watching a movie. He only managed to understand the definitions of these equations.

Now he wants to write his math exercises but since he has no idea how to do that, he asked you for help. He has told you all he knows about Modular Equations and asked you to write a program which given two numbers *a* and *b* determines how many answers the Modular Equation <img align="middle" class="tex-formula" src="https://espresso.codeforces.com/fc4bae676fb9b7279f0b9e6781d3d2d6abf86586.png" style="max-width: 100.0%;max-height: 100.0%;"/> has.
In the only line of the input two space-separated integers *a* and *b* (0 ≤ *a*, *b* ≤ 10<sup class="upper-index">9</sup>) are given.
a,b = [int(x) for x in input().split()]
import math
if b > a:
    print(0)
elif b == a:
    print("infinity")
else:
    contador = 0

    for i in range(1,int(math.sqrt((a)))+1):
        if (a-b)%i ==0:
            if i>b:
                contador+=2
            else:
                contador+=1

    if math.sqrt(a-b)%1 == 0:
        contador -= 1
    print(contador)

 	 	  		  		 	   					 	 	  	 	