#include #define fastIO (cin.tie(0), cout.tie(0), ios::sync_with_stdio(false)) using namespace std; int main() { fastIO; int n, h; cin >> n >> h; for (int i = 0, num; i < n; ++i) { cin >> num; if (h % num == 0) { h /= num; } if (h == 1) { cout << "YES" << '\n'; return 0; } } cout << "NO" << '\n'; return 0; }