using System; public class Hello { static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var n = int.Parse(line[0]); var h = int.Parse(line[1]); line = Console.ReadLine().Trim().Split(' '); var a = Array.ConvertAll(line, int.Parse); getAns(n, h, a); } static void getAns(int n, int h, int[] a) { for (int i = 0; i < n; i++) { var t = gcd(h, a[i]); h /= t; if (h == 1) { Console.WriteLine("YES"); return; } } Console.WriteLine("NO"); } static int gcd(int a, int b) { if (a < b) return gcd(b, a); while (b != 0) { var w = a % b; a = b; b = w; } return a; } }