Problem: The Prodiggers are quite a cool band and for this reason, they have been the surprise guest at the ENTER festival for the past 80 years. At the beginning of their careers, they weren’t so successful, so they had to spend time digging channels to earn money; hence the name. Anyway, they like to tour a lot and have surprising amounts of energy to do extremely long tours. However, they hate spending two consecutive days without having a concert, so they would like to avoid it.

A tour is defined by a sequence of concerts and days-off. You need to count in how many ways The Prodiggers can select k different tours of the same length between l and r.

For example if k = 2, l = 1 and r = 2, if we define concert day as {1} and day-off as {0}, here are all possible tours: {0}, {1}, {00}, {01}, {10}, {11}. But tour 00 can not be selected because it has 2 days-off in a row. Now, we need to count in how many ways we can select k = 2 tours of the same length in range [1;2]. Here they are: {0,1}; {01,10}; {01,11}; {10,11}.

Since their schedule is quite busy, they want you to tell them in how many ways can do that, modulo 1 000 000 007 (109 + 7).

Input

The first line of the input contains three integers k, l and r (1 ≤ k ≤ 200, 1 ≤ l ≤ r ≤ 1018).

Output

Output a single number: the number of ways to select k different tours of the same length, modulo 1 000 000 007.

Example

Input

1 1 2


Output

5

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const long long N = 210;
const long long mod = 1e9 + 7, I = 5ll;
long long S[N][N];
long long fac[N], ifac[N];
long long qpow(long long a, long long b) {
  long long ans = 1ll;
  while (b) {
    if (b & 1) ans = ans * a % mod;
    a = a * a % mod;
    b >>= 1;
  }
  return ans;
}
struct comp {
  long long x, y;
  comp operator+(const long long& k) const {
    return comp{(x + k) % mod, y % mod};
  }
  comp operator+(const comp& k) const {
    return comp{(x + k.x) % mod, (y + k.y) % mod};
  }
  comp operator-(const long long& k) const {
    return comp{(x - k + mod) % mod, y % mod};
  }
  comp operator-(const comp& k) const {
    return comp{(x - k.x + mod) % mod, (y - k.y + mod) % mod};
  }
  comp operator*(const long long& k) const {
    return comp{(x * k) % mod, (y * k) % mod};
  }
  comp operator*(const comp& k) const {
    return comp{(x * k.x % mod + I * y % mod * k.y % mod) % mod,
                (x * k.y % mod + y * k.x % mod) % mod};
  }
  comp operator/(const long long& k) const {
    return comp{(x * qpow(k, mod - 2)) % mod, (y * qpow(k, mod - 2)) % mod};
  }
  comp operator/(const comp& k) const {
    long long d = (k.x * k.x % mod - I * k.y % mod * k.y % mod + mod) % mod;
    long long A = (x * k.x % mod - I * y % mod * k.y % mod + mod) % mod,
              B = (y * k.x % mod - x * k.y % mod + mod) % mod;
    A = A * qpow(d, mod - 2), B = B * qpow(d, mod - 2);
    return comp{A % mod, B % mod};
  }
};
const comp A = {0, qpow(5, mod - 2)}, B = {0, mod - qpow(5, mod - 2)},
           X = {qpow(2, mod - 2), qpow(2, mod - 2)},
           Y = {qpow(2, mod - 2), mod - qpow(2, mod - 2)};
comp qpoww(comp a, long long b) {
  comp ans = {1, 0};
  while (b) {
    if (b & 1) ans = ans * a;
    a = a * a;
    b >>= 1;
  }
  return ans;
}
long long C(long long a, long long b) {
  if (a < b || a < 0 || b < 0)
    return 0;
  else
    return fac[a] * ifac[a - b] % mod * ifac[b] % mod;
}
long long l, r, k;
comp SS(comp a, long long n) { return (qpoww(a, n + 1) - a) / (a - 1); }
comp Sum(comp a, long long l, long long r) {
  if (a.x == 1 && a.y == 0)
    return {(r - l + 1) % mod, 0};
  else
    return SS(a, r) - SS(a, l - 1);
}
void solve() {
  long long Ans = 0;
  for (long long i = 0; i <= k; i++) {
    comp ttmp = {0, 0};
    for (long long j = 0; j <= i; j++) {
      comp ans = {1, 0};
      ans = ans * qpoww(A, j);
      ans = ans * qpoww(B, i - j);
      ans = ans * C(i, j);
      ans = ans * Sum(qpoww(X, j) * qpoww(Y, i - j), l, r);
      ttmp = ttmp + ans;
    }
    Ans = (Ans + ttmp.x * S[k][i] % mod) % mod;
  }
  Ans = Ans * ifac[k] % mod;
  cout << Ans << endl;
}
signed main() {
  scanf("%lld%lld%lld", &k, &l, &r);
  l += 2;
  r += 2;
  fac[0] = 1ll;
  for (long long i = 1; i <= k; i++) fac[i] = i * fac[i - 1] % mod;
  ifac[k] = qpow(fac[k], mod - 2);
  for (long long i = k - 1; i >= 0; i--) ifac[i] = (i + 1) * ifac[i + 1] % mod;
  S[0][0] = 1;
  for (long long i = 0; i < 202 - 1; i++) {
    for (long long j = 1; j <= i + 1; j++) {
      S[i + 1][j] = (S[i][j - 1] - i * S[i][j] % mod + mod) % mod;
    }
  }
  solve();
}