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 MOD = 1e9 + 7, MAXN = 256, inv2 = MOD + 1 >> 1,
                inv5 = 400000003;
inline long long fpow(long long a, long long x) {
  long long ans = 1;
  for (a %= MOD; x; x >>= 1, a = a * a % MOD)
    if (x & 1) ans = ans * a % MOD;
  return ans;
}
inline long long inv(long long a) { return fpow(a, MOD - 2); }
pair<long long, long long> operator+(const pair<long long, long long> &a,
                                     const pair<long long, long long> &b) {
  return pair<long long, long long>((a.first + b.first) % MOD,
                                    (a.second + b.second) % MOD);
}
pair<long long, long long> operator-(const pair<long long, long long> &a,
                                     const pair<long long, long long> &b) {
  return pair<long long, long long>((a.first - b.first + MOD) % MOD,
                                    (a.second - b.second + MOD) % MOD);
}
pair<long long, long long> operator*(const pair<long long, long long> &a,
                                     const pair<long long, long long> &b) {
  return pair<long long, long long>(
      (a.first * b.first % MOD + a.second * b.second % MOD * 5ll % MOD) % MOD,
      (a.first * b.second % MOD + a.second * b.first % MOD) % MOD);
}
pair<long long, long long> operator*(const pair<long long, long long> &a,
                                     const long long &b) {
  return pair<long long, long long>(a.first * b % MOD, a.second * b % MOD);
}
pair<long long, long long> operator~(const pair<long long, long long> &p) {
  return pair<long long, long long>(p.first, MOD - p.second) *
         inv((p.first * p.first % MOD - p.second * p.second % MOD * 5ll % MOD +
              MOD) %
             MOD);
}
pair<long long, long long> operator/(const pair<long long, long long> &a,
                                     const pair<long long, long long> &b) {
  return a * (~b);
}
inline pair<long long, long long> fpow(pair<long long, long long> a,
                                       long long x) {
  pair<long long, long long> ans(1, 0);
  for (; x; x >>= 1, a = a * a)
    if (x & 1) ans = ans * a;
  return ans;
}
long long K, L, R, S1[MAXN][MAXN], C[MAXN][MAXN], Frac[MAXN];
inline void pre() {
  C[0][0] = Frac[0] = 1;
  for (int i = 1; i <= 200; ++i) {
    Frac[i] = Frac[i - 1] * i % MOD;
    S1[i][i] = C[i][0] = C[i][i] = 1;
    for (int j = 1; j < i; ++j)
      S1[i][j] = (S1[i - 1][j - 1] + (i - 1ll) * S1[i - 1][j] % MOD) % MOD,
      C[i][j] = (C[i - 1][j - 1] + C[i - 1][j]) % MOD;
  }
}
inline pair<long long, long long> sumq(pair<long long, long long> a,
                                       long long l, long long r) {
  static pair<long long, long long> one = pair<long long, long long>(1, 0);
  if (a == one) return pair<long long, long long>((r - l + 1) % MOD, 0);
  return (fpow(a, r + 1) - fpow(a, l)) / (a - one);
}
int main() {
  pre();
  cin >> K >> L >> R;
  long long ans = 0;
  L += 2;
  R += 2;
  pair<long long, long long> a(0ll, inv5), b(0ll, -inv5), x(inv2, inv2),
      y(inv2, -inv2);
  for (int i = 0; i <= K; ++i) {
    long long res = 0;
    for (int j = 0; j <= i; ++j)
      res += (sumq(fpow(x, j) * fpow(y, i - j), L, R) * fpow(a, j) *
              fpow(b, i - j))
                 .first *
             C[i][j] % MOD;
    ans = (ans + MOD + res % MOD * S1[K][i] * fpow(-1, K - i) % MOD) % MOD;
  }
  ans = ans % MOD * inv(Frac[K]) % MOD + MOD;
  cout << ans % MOD;
  return 0;
}