#include using namespace std; typedef long long ll; typedef long double ld; typedef vector VI; typedef vector VL; typedef vector> VII; typedef vector> VLL; typedef vector VS; #define pii pair #define pll pair #define pis pair #define psi pair #define rep(i,num,n) for(int i=num;i<(int)(n);i++) //for_loop #define rrep(i,num,n) for(int i=num-1;i>=(int)(n);i--) //reverse_for> #define in(x,a,b) (a<=x && x inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; } ll CountMultiple(ll L,ll R,ll div){//[L,R]の範囲でdivで割り切れる個数 if(R%div==0){ if(L%div==0) return R/div-L/div+1; else return R/div-L/div; }else{ if(L%div==0)return R/div-L/div+1; else return R/div-L/div; } } int main(){ ll N,L,H; cin>>N>>L>>H; VL C(N);rep(i,0,N)cin>>C[i]; ll ans=0; rep(i,0,N){ VL cc; ll d=0; rep(j,0,N)if(i!=j)cc.push_back(C[j]); rep(bit,0,(1<<(N-1))){ ll lc=C[i]; int cnt=0; rep(j,0,N-1)if(bit & (1<