#include using namespace std; int main() { int64_t n, h; cin >> n >> h; int64_t a[n], multiply = 1; for (int i = 0; i < n; i++) { cin >> a[i]; multiply *= a[i]; } if (multiply % h == 0) cout << "YES\n"; else cout << "NO\n"; return 0; }