#include using namespace std; typedef long long ll; typedef pair P; #define REP(i,n) for(int i=0;i> N >> K; vector A(N); for(i=0;i> A[i]; ll x=gcd(A[i],K); K%=x; } if(K==0) cout << "Yes" << endl; else cout << "No" << endl; return 0; }