#include<bits/stdc++.h>
using namespace std;
#define int long long
const int N=100005,M=1e9+7;
struct Tree{
	int l,r,num;
}T[N*4];
int n,x,y,a[N],f[N],g[N],b[N];
void build(int x,int l,int r){
	T[x].l=l;T[x].r=r;
	if (l==r){
		T[x].num=b[l];
		return;
	}
	int mid=(l+r)/2;
	build(x*2,l,mid);
	build(x*2+1,mid+1,r);
	T[x].num=min(T[x*2].num,T[x*2+1].num);
}
int find(int x,int l,int r){
	if (l>r)return 1e18;
	if (T[x].l>r||l>T[x].r)return 1e18;
	if (T[x].l>=l&&T[x].r<=r)return T[x].num;
	return min(find(x*2,l,r),find(x*2+1,l,r));
}
signed main(){
	scanf("%lld%lld%lld",&n,&x,&y);
	for (int i=1;i<=n;i++)scanf("%lld",&a[i]);
	a[0]=-1e18;
	for (int i=1;i<n;i++)b[i]=a[i]-a[i-1];
	build(1,1,n);
	f[1]=g[1]=1;
	for (int i=2;i<=n;i++){
		int l=0,r=i-1;
		while (l<r){
			int mid=(l+r+1)/2;
			if (a[i]-a[mid]>=x)l=mid;
			else r=mid-1; 
		}
		if (i==l+1)f[i]=(f[i-1]+g[i-1])%M; 
		else if (find(1,l+2,i-1)>=y)f[i]=g[l+1];
		l=0,r=i-1;
		while (l<r){
			int mid=(l+r+1)/2;
			if (a[i]-a[mid]>=y)l=mid;
			else r=mid-1; 
		}
		if (i==l+1)g[i]=(g[i-1]+f[i-1])%M; 
		else if (find(1,l+2,i-1)>=x)g[i]=f[l+1];
	} 
	printf("%lld\n",(f[n]+g[n])%M);
}