#include #define rep(i,n) for(int i=0;i>n; int64_t y[n]; rep(i,n) cin>>y[i]; sort(y,y+n); int64_t l,r; int mid=n/2; l=y[mid/2]; r=y[(n+mid)/2]; if(l==r){ cout<<1<