using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static int NN => int.Parse(ReadLine()); static int[] NList => ReadLine().Split().Select(int.Parse).ToArray(); public static void Main() { Solve(); } static void Solve() { var c = NList; var (n, h) = (c[0], c[1]); var a = NList; foreach (var ai in a) { if (ai == 0) { WriteLine("YES"); return; } h = h / GCD(Math.Abs(ai), h); } WriteLine(h == 1 ? "YES" : "NO"); } static int GCD(int a, int b) { if (a < b) return GCD(b, a); if (a % b == 0) return b; return GCD(b, a % b); } }