using System.Collections.Generic; using System; public class Hello { static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var x = long.Parse(line[0]); var a = long.Parse(line[1]); var y = long.Parse(line[2]); var b = long.Parse(line[3]); Console.WriteLine(getAns(x, a, y, b) ? "Yes" : "No"); } static bool getAns(long x, long a, long y, long b) { var d = PF(x); var d2 = PF(y); foreach (var t in d2) { if (!d.ContainsKey(t.Key)) return false; var bb = t.Value * b; var aa = d[t.Key] * a; if (aa < bb) return false; } return true; } static Dictionary PF(long n) { var d = new Dictionary(); for (long i = 2; i * i <= n; i++) { if (n % i != 0) continue; var x = 0L; while (n % i == 0) { x++; n /= i; } d[i] = x; } if (n != 1) d[n] = 1; return d; } }