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 = 200 + 10;
const long long MOD = 1e9 + 7;
template <typename Tp>
void read(Tp &x) {
  x = 0;
  long long op = 1;
  char ch = getchar();
  while (!isdigit(ch)) {
    if (ch == '-') op = -1;
    ch = getchar();
  }
  while (isdigit(ch)) {
    x = x * 10 + ch - '0';
    ch = getchar();
  }
  x *= op;
}
template <typename Tp>
void CMax(Tp &x, Tp y) {
  if (y < x) x = y;
}
template <typename Tp>
void CMin(Tp &x, Tp y) {
  if (y > x) x = y;
}
long long power(long long x, long long p) {
  long long ret = 1;
  while (p) {
    if (p & 1) ret = 1ll * ret * x % MOD;
    x = 1ll * x * x % MOD;
    p >>= 1;
  }
  return ret;
}
long long S1[N][N], fac[N], ifac[N];
long long w = 5;
struct CP {
  long long x, y;
  CP() { x = y = 0; }
  CP(long long _x, long long _y) : x(_x), y(_y) {}
} a, b, c, d;
CP operator+(CP A, CP B) {
  A.x += B.x;
  if (A.x >= MOD) A.x -= MOD;
  A.y += B.y;
  if (A.y >= MOD) A.y -= MOD;
  return A;
}
CP operator-(CP A, long long k) {
  A.x -= k;
  if (A.x < 0) A.x += MOD;
  return A;
}
CP operator-(CP A, CP B) {
  A.x -= B.x;
  if (A.x < 0) A.x += MOD;
  A.y -= B.y;
  if (A.y < 0) A.y += MOD;
  return A;
}
CP operator*(CP A, CP B) {
  CP C;
  C.x = (1ll * A.x * B.x % MOD + 1ll * A.y * B.y % MOD * w % MOD) % MOD;
  C.y = (1ll * A.y * B.x % MOD + 1ll * A.x * B.y % MOD) % MOD;
  return C;
}
CP operator/(CP A, CP B) {
  CP C;
  long long fm =
      (1ll * B.x * B.x % MOD - 1ll * w * B.y % MOD * B.y % MOD + MOD) % MOD;
  fm = power(fm, MOD - 2);
  C.x = (1ll * A.x * B.x % MOD - 1ll * A.y * B.y % MOD * w % MOD + MOD) % MOD *
        fm % MOD;
  C.y = (1ll * A.y * B.x % MOD - 1ll * A.y * B.x % MOD + MOD) % MOD * fm % MOD;
  return C;
}
CP power(CP x, long long p) {
  CP ret(1, 0);
  while (p) {
    if (p & 1) ret = ret * x;
    x = x * x;
    p >>= 1;
  }
  return ret;
}
void process(long long n) {
  fac[0] = 1;
  for (long long i = (1); i <= (n); ++i) fac[i] = 1ll * fac[i - 1] * i % MOD;
  ifac[n] = power(fac[n], MOD - 2);
  for (long long i = n - 1; i >= 0; --i)
    ifac[i] = 1ll * ifac[i + 1] * (i + 1) % MOD;
  S1[0][0] = 1;
  for (long long i = (1); i <= (n); ++i)
    for (long long j = (1); j <= (i); ++j)
      S1[i][j] = (1ll * (i - 1) * S1[i - 1][j] + S1[i - 1][j - 1]) % MOD;
  long long inv2 = power(2, MOD - 2), inv5 = power(5, MOD - 2);
  a = CP(0, inv5);
  b = CP(0, MOD - inv5);
  c = CP(inv2, inv2);
  d = CP(inv2, MOD - inv2);
}
long long C(long long n, long long m) {
  return 1ll * fac[n] * ifac[n - m] % MOD * ifac[m] % MOD;
}
long long k, l, r;
long long Ans;
signed main() {
  read(k);
  read(l);
  read(r);
  process(k);
  for (long long i = 1; i <= k; ++i) {
    CP ans(0, 0);
    for (long long j = 0; j <= i; ++j) {
      CP res(C(i, j), 0);
      res = res * power(a, j) * power(b, i - j);
      CP q = power(c, j) * power(d, i - j);
      if (q.x == 1 && q.y == 0)
        res.x = (r - l + 1) % MOD * res.x % MOD;
      else
        res = res * (power(q, r + 3) - power(q, l + 2)) / (q - 1);
      ans = ans + res;
    }
    if ((k - i) & 1) ans.x = (MOD - ans.x);
    Ans = (Ans + 1ll * ans.x * S1[k][i] % MOD) % MOD;
  }
  Ans = 1ll * Ans * ifac[k] % MOD;
  printf("%lld", Ans);
  return 0;
}