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