#include #define rep(i,n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair; const int INF = 1001001001; int main() { ll n, h; cin >> n >> h; vector a(n); ll ans = 1; for(int i = 0; i < n; i++){ cin >> a[i]; ans *= a[i]; } if(ans%h == 0) cout<<"YES"<