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 int N = 555;
const int mod = 1e9 + 7, inv2 = (mod + 1) / 2;
int qpow(int x, int y = mod - 2) {
  int res = 1;
  for (; y; x = (long long)x * x % mod, y >>= 1)
    if (y & 1) res = (long long)res * x % mod;
  return res;
}
struct Num {
  int x, y;
  Num(int xx = 0, int yy = 0) { x = xx, y = yy; }
  friend Num operator+(Num aa, Num bb) {
    return Num((aa.x + bb.x) % mod, (aa.y + bb.y) % mod);
  }
  friend Num operator-(Num aa, Num bb) {
    return Num((aa.x - bb.x + mod) % mod, (aa.y - bb.y + mod) % mod);
  }
  friend Num operator*(Num aa, Num bb) {
    return Num(
        ((long long)aa.x * bb.x % mod +
         (long long)aa.y * bb.y % mod * 5 % mod) %
            mod,
        ((long long)aa.x * bb.y % mod + (long long)aa.y * bb.x % mod) % mod);
  }
  Num Inv() {
    int qwq =
        qpow(((long long)y * y % mod * 5 % mod + mod - (long long)x * x % mod) %
             mod);
    return Num((long long)(mod - x) * qwq % mod, (long long)qwq * y % mod);
  }
  friend Num operator/(Num aa, Num bb) { return aa * bb.Inv(); }
  friend Num operator^(Num x, long long y) {
    Num res(1, 0);
    for (; y; x = x * x, y >>= 1)
      if (y & 1) res = res * x;
    return res;
  }
};
int k, S[N][N], fac[N], ifac[N], inv[N];
void init(int x) {
  fac[0] = ifac[0] = inv[1] = 1;
  for (int i = 2, iE = x; i <= iE; i++)
    inv[i] = (long long)(mod - mod / i) * inv[mod % i] % mod;
  for (int i = 1, iE = x; i <= iE; i++)
    fac[i] = (long long)fac[i - 1] * i % mod,
    ifac[i] = (long long)ifac[i - 1] * inv[i] % mod;
  S[0][0] = 1;
  for (int i = 1, iE = x; i <= iE; i++)
    for (int j = 1, jE = i; j <= jE; j++)
      S[i][j] = (S[i - 1][j - 1] + (long long)(i - 1) * S[i - 1][j]) % mod;
}
int C(int x, int y) {
  return (long long)fac[x] * ifac[y] % mod * ifac[x - y] % mod;
}
int calc(long long x) {
  Num res(0), tw(1);
  for (int i = 0, iE = k; i <= iE; i++) {
    Num now(0);
    for (int j = 0, jE = i; j <= jE; j++) {
      Num val = (Num(inv2, inv2) ^ j) * (Num(inv2, mod - inv2) ^ (i - j)), z;
      if (val.x == 1 && val.y == 0)
        z = Num((x + 1) % mod);
      else
        z = ((val ^ (x + 3)) - Num(1)) / (val - Num(1)) - val - Num(1);
      z = z * Num(C(i, j));
      if (j & 1) z = Num() - z;
      now = now + z;
    }
    now = now * Num(S[k][i]);
    res = res + now * tw;
    tw = tw / Num(0, 1);
  }
  if (k & 1) res = Num() - res;
  res = res * Num(ifac[k]);
  return res.x;
}
long long l, r;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0), cout.tie(0);
  cin >> k >> l >> r;
  init(202);
  cout << (calc(r) - calc(l - 1) + mod) % mod << "\n";
  return 0;
}