X, A, Y, B = map(int, input().split()) if Y == 1: print("Yes") exit() def factorization(n): fact = dict() temp = n for i in range(2, int(-(-(n ** 0.5) // 1)) + 1): if temp % i == 0: cnt = 0 while temp % i == 0: cnt += 1 temp //= i fact[i] = cnt if temp != 1: fact[temp] = 1 if not fact: fact[n] = 1 return fact fact_x_power_of_a = {p: cnt * A for p, cnt in factorization(X).items()} fact_y_power_of_b = {p: cnt * B for p, cnt in factorization(Y).items()} flg = True for p in fact_y_power_of_b: try: if fact_x_power_of_a[p] < fact_y_power_of_b[p]: flg = False except KeyError: flg = False print("Yes" if flg else "No")