#include using namespace std; int main(){ int N, H; cin >> N >> H; long long sum = 1; for (int i = 0; i < N; i++){ int a; cin >> a; sum *= a; sum %= H; } if (sum == 0){ cout << "YES" << endl; } else { cout << "NO" << endl; } }