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;
template <class t>
inline t read(t &x) {
  char c = getchar();
  bool f = 0;
  x = 0;
  while (!isdigit(c)) f |= c == '-', c = getchar();
  while (isdigit(c)) x = (x << 1) + (x << 3) + (c ^ 48), c = getchar();
  if (f) x = -x;
  return x;
}
template <class t>
inline void write(t x) {
  if (x < 0)
    putchar('-'), write(-x);
  else {
    if (x > 9) write(x / 10);
    putchar('0' + x % 10);
  }
}
const long long mod = 1e9 + 7, N = 205;
long long fac, ans, k, l, r, i2, i5, C[N][N], S[N][N];
long long Mod(long long x) { return x < 0 ? x + mod : x >= mod ? x - mod : x; }
long long fpow(long long x, long long y) {
  long long res = 1;
  for (; y; y >>= 1, x = x * x % mod)
    if (y & 1) res = res * x % mod;
  return res;
}
struct cplx {
  long long a, b;
  cplx(long long a = 0, long long b = 0) : a(a), b(b) {}
  inline cplx operator+(const cplx &nt) const {
    return cplx(Mod(a + nt.a), Mod(b + nt.b));
  }
  inline cplx operator+(const long long &x) const {
    return cplx(Mod(a + x), b);
  }
  inline cplx operator-(const cplx &nt) const {
    return cplx(Mod(a - nt.a), Mod(b - nt.b));
  }
  inline cplx operator-(const long long &x) const {
    return cplx(Mod(a - x), b);
  }
  inline cplx operator*(const cplx &nt) const {
    return cplx((a * nt.a + b * nt.b * 5) % mod, (a * nt.b + b * nt.a) % mod);
  }
  inline cplx operator*(const long long &x) const {
    return cplx(a * x % mod, b * x % mod);
  }
  inline cplx operator/(const cplx &nt) const {
    return *this * cplx(nt.a, Mod(-nt.b)) *
           fpow(Mod(nt.a * nt.a % mod - nt.b * nt.b * 5 % mod), mod - 2);
  }
};
cplx fpow(cplx x, long long y) {
  cplx res = cplx(1, 0);
  for (; y; y >>= 1, x = x * x)
    if (y & 1) res = res * x;
  return res;
}
cplx sum(cplx a, long long n) { return (fpow(a, n + 1) - a) / (a - 1); }
cplx sum(cplx a, long long l, long long r) {
  if (a.a == 1 && a.b == 0) return a * (r - l + 1);
  return sum(a, r) - sum(a, l - 1);
}
signed main() {
  read(k);
  read(l);
  read(r);
  l += 2;
  r += 2;
  i2 = mod + 1 >> 1;
  i5 = fpow(5, mod - 2);
  fac = 1;
  for (long long i = 2; i <= k; i++) fac = fac * i % mod;
  for (long long i = 0; i <= k; i++) {
    C[i][0] = 1;
    for (long long j = 1; j <= i; j++)
      C[i][j] = Mod(C[i - 1][j - 1] + C[i - 1][j]);
  }
  S[0][0] = 1;
  for (long long i = 0; i < k; i++)
    for (long long j = 1; j <= i + 1; j++)
      S[i + 1][j] = Mod(S[i][j - 1] - i * S[i][j] % mod);
  cplx A, B, x, y;
  A = cplx(0, i5);
  B = cplx(0, mod - i5);
  x = cplx(i2, i2);
  y = cplx(i2, mod - i2);
  for (long long i = 0; i <= k; i++) {
    cplx a = cplx(0, 0);
    for (long long j = 0; j <= i; j++) {
      cplx b = fpow(A, j) * fpow(B, i - j) *
               sum(fpow(x, j) * fpow(y, i - j), l, r) * C[i][j];
      a = a + b;
    }
    a = a * S[k][i];
    ans = Mod(ans + a.a);
  }
  ans = ans * fpow(fac, mod - 2) % mod;
  write(ans);
}