#define _USE_MATH_DEFINES #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; const int mod=998244353; int main(){ int n,h,a; cin>>n>>h; ll ans=1; while(cin>>a) ans=ans*abs(a)%h; cout<<(ans==0?"YES":"NO")<