//In the name of God
#include <bits/stdc++.h>
using namespace std;

typedef long long ll;
typedef pair<ll, ll> pll;

const ll maxn = 2e5 + 100;
const ll mod = 1e9 + 7;
const ll inf = 1e18;

#define fast_io ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define file_io freopen("input.txt", "r+", stdin);freopen("output.txt", "w+", stdout);
#define pb push_back
#define Mp make_pair
#define F first
#define S second

ll n, dp[maxn][2], a[maxn], x[2], d[2];

int main(){
    fast_io;

    cin >> n >> x[0] >> x[1];
    a[0] = -inf;
    for(ll i = 1; i <= n; i++){
        cin >> a[i];
    }
    dp[1][0] = 1;
    dp[1][1] = 1;
    for(ll i = 2; i <= n; i++){
        for(ll j = 0; j < 2; j++){
            if(a[i] - a[i - 1] >= x[j]){
                dp[i][j] = (dp[i - 1][j] + dp[i - 1][1 - j]) % mod;
            }
            else{
                ll y = upper_bound(a, a + i, a[i] - x[j]) - a;
                if(d[1 - j] < y){
                    dp[i][j] = dp[y][1 - j];
                }
            }
        }
        if(a[i] - a[i - 1] < x[0]){
            d[0] = i - 1;
        }
        if(a[i] - a[i - 1] < x[1]){
            d[1] = i - 1;
        }
    }
    cout << (dp[n][0] + dp[n][1]) % mod;

    return 0;
}
