#include using namespace std; #define ALL(x) x.begin(),x.end() #define rep(i,n) for(int i=0;i<(n);i++) #define debug(v) cout<<#v<<":";for(auto x:v){cout<bool chmax(T &a,const T &b){if(abool chmin(T &a,const T &b){if(b>=1; } return ret; } void mugen1337(){ int n;cin>>n; vector a(n); rep(i,n) cin>>a[i]; ll ans=0; for(int bit=1;bit<(1<>i)&1)g=gcd(g,a[i]); if(g==1) ans++; } cout<>n; vector a(n); rep(i,n) cin>>a[i]; set st; rep(i,n){ for(ll j=1;j*j<=a[i];j++){ if(a[i]%j) continue; st.insert(j); st.insert(a[i]/j); } } st.erase(1); map mp; for(auto x:st){ ll cnt=0; rep(i,n) if(a[i]%x==0) cnt++; mp[-x]=p2(cnt)-1; } ll mx=*max_element(ALL(a)); for(auto p:mp){ ll num=-p.first; for(ll i=2;i*i<=num;i++){ if(num%i) continue; ll x=i,y=num/i; mp[-x]-=p.second; if(x!=y) mp[-y]-=p.second; } } ll res=0; for(auto p:mp){ res+=p.second; } cout<