import math n, k = map(int, input().split()) a = list(map(int, input().split())) # Check if K is already present in the array if k in a: print("Yes") exit() # Check if all elements are the same all_same = True for num in a[1:]: if num != a[0]: all_same = False break if all_same: print("Yes" if k == 0 else "No") exit() # Calculate the GCD of differences g = 0 for num in a[1:]: d = abs(num - a[0]) g = math.gcd(g, d) # Check if K is a multiple of the GCD if g != 0 and k % g == 0: print("Yes") else: print("No")