Question
Ram's Distribution
Ram has N mangoes and people. Each mango weighs exactly 1 kg. To distribute the mangoes among the people, Ram can cut each mango into halves as many times as needed. Determine if it's possible to distribute the mangoes among the people such that each person gets an equal weight of mangoes.
Input
The first and only line of input contains two space separated integers N and M, representing the number of mangoes and people respectively.

Constraints
1 ≤ n, m ≤ 109
Output
Print "Yes" if it's possible to divide the mangoes equally among the m people, "No" otherwise (without quotes).
Example
Sample Input
3 4
Sample Output
Yes
Explanation
Each person gets, 0.75Kg. To divide, we can divide, two mangoes in two halves, 0.5 each. and one in four parts, 0.25 each. Now distribute two pieces (0.5 and 0.25) to each person.

Online