#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
ll GetDigit(ll num){ return log10(num)+1; } //numの桁数を求める

int main()
{
    int h, w;
    cin >> h >> w;
    vector<vector<char>> s(h, vector<char>(w));
    rep(i,h) rep(j, w) cin >> s[i][j];
    rep(i,h)rep(j,w){
        if(s[i][j] == '#' && i != 0 && j != 0 && i != h-1 && j != w-1){
            if(s[i+1][j] != '#' && s[i-1][j] != '#' && s[i][j-1] != '#' && s[i][j+1] != '#'){
                cout << "No" << endl;
                return 0;
            }
        }
    }
    cout << "Yes" << endl;
    return 0;
}
#include<bits/stdc++.h>
#define int long long
using namespace std;
signed main(){
  int N,K,mx=0,gc=0;
  cin>>N>>K;
  vector<int> A(N);
  for(int &i:A){
    cin>>i;
    mx=max(mx,i),gc=__gcd(gc,i);
  }
  if(K<=mx && K%gc==0)puts("POSSIBLE");
  else puts("IMPOSSIBLE");
}