using System; public class Hello { static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var a = long.Parse(line[0]); var b = long.Parse(line[1]); while (true) { if (b % 2 == 0) b /= 2; else break; } while (true) { if (b % 5 == 0) b /= 5; else break; } if (b == 1) Console.WriteLine("No"); else Console.WriteLine(a % b == 0 ? "No" : "Yes"); } }