#include //#include //using namespace atcoder; using namespace std; using ll = long long; int main(){ ll n,x,y; cin >> n >> x >> y; vector a(n); for(auto &i:a)cin >> i; vector ans(n); for(int i = 0;i<2;i++){ vector b = a; for(auto &i:b) i = x-i; int l = 0,r = 1; vector bsum(n+1,0); for(int i = 0;i