#include #include #include using namespace atcoder; using mint = modint; using namespace std; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf 1000000001 vector get(int n){ static vector> dp(20001); if(dp[n].size()>0)return dp[n]; int c = n; for(int i=2;i*i<=c;i++){ while(c%i==0){ c /= i; dp[n].push_back(i); } } if(c!=1)dp[n].push_back(c); return dp[n]; } int main(){ int n,k; cin>>n>>k; vector> v; vector a(n); rep(i,n)cin>>a[i]; rep(i,1<>j)&1)c++; } if(c M; int sum = 0; rep(j,n){ if((i>>j)&1){ sum += a[j]; vector t = get(a[j]); rep(k,t.size())M.push_back(t[k]); } } v.push_back(get(sum)); sort(M.begin(),M.end()); v.push_back(M); } sort(v.begin(),v.end()); v.erase(unique(v.begin(),v.end()),v.end()); cout<