#include using namespace std; #define int long long const int N=1e6+10,INF=1e18+10,K=1030; inline int read(){int x=0,f=1;char ch=getchar();while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getchar();}while(ch>='0'&&ch<='9'){x=(x<<3)+(x<<1)+ch-48;ch=getchar();}return x*f;} int n,a,b,w,ans=INF,d[N],f[K],g[K]; signed main(){ n=read(),a=read(),b=read(),w=read(); for(int i=1;i<=n;i++) d[i]=read(); if(b==0){ cout<