import sys from functools import reduce import operator def input(): return sys.stdin.readline().rstrip('\n') def main(): n, h = map(int, input().split()) a = reduce(operator.mul, map(int, input().split()), 1) print('YES' if a % h == 0 else 'NO') if __name__ == '__main__': main()