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;
long long MOD = 1e9 + 7;
long long qp(long long a, long long b) {
  a %= MOD;
  long long ans = 1;
  while (b) {
    if (b & 1) ans = ans * a % MOD;
    a = a * a % MOD;
    b >>= 1;
  }
  return ans;
}
long long divm(long long a, long long v) { return a * qp(v, MOD - 2) % MOD; }
long long mulm(long long a, long long b) { return a * b % MOD; }
pair<long long, long long> operator+(pair<long long, long long> a,
                                     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-(pair<long long, long long> a,
                                     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*(pair<long long, long long> a,
                                     pair<long long, long long> b) {
  long long fii = a.first * b.first + a.second * b.second * 5;
  long long see = a.second * b.first + a.first * b.second;
  return pair<long long, long long>(fii % MOD, see % MOD);
}
pair<long long, long long> operator*(pair<long long, long long> a,
                                     long long b) {
  return pair<long long, long long>(a.first * b % MOD, a.second * b % MOD);
}
pair<long long, long long> qp(pair<long long, long long> a, long long b) {
  pair<long long, long long> ans = pair<long long, long long>(1, 0);
  while (b) {
    if (b & 1) ans = ans * a;
    a = a * a;
    b >>= 1;
  }
  return ans;
}
pair<pair<long long, long long>, pair<long long, long long> > qh(
    pair<long long, long long> a, long long b) {
  if (!b)
    return pair<pair<long long, long long>, pair<long long, long long> >(
        pair<long long, long long>(1, 0), pair<long long, long long>(1, 0));
  pair<pair<long long, long long>, pair<long long, long long> > hf_ =
      qh(a, (b - 1) >> 1);
  pair<long long, long long> hf = hf_.first, ans = hf_.second * a;
  ++ans.first;
  ans = hf * ans;
  long long tot = ((b - 1) >> 1) << 1;
  pair<long long, long long> ma = hf_.second * hf_.second;
  while ((tot++) < b) ma = ma * a;
  if (b & 1)
    ;
  else
    ans = ans + ma;
  return pair<pair<long long, long long>, pair<long long, long long> >(ans, ma);
}
long long k, l, r;
template <class T>
inline void MM(T& s) {
  s = (s % MOD + MOD) % MOD;
}
long long ss[233][233], C[233][233], c[233];
void gc() {
  long long jc = 1;
  for (int i = 1; i <= k; i++) jc = jc * i % MOD;
  for (int i = 0; i <= k; i++) c[i] = divm(ss[k][i], jc);
}
pair<long long, long long> top(long long x) {
  return pair<long long, long long>(x, 0);
}
long long inv2 = qp(2, MOD - 2), inv5 = qp(5, MOD - 2);
pair<long long, long long> p(inv2, inv2), q(inv2, -inv2);
pair<long long, long long> ps[666666], qs[666666];
long long gfib(long long r, int s) {
  pair<long long, long long> ans = pair<long long, long long>(0, 0);
  for (int j = 0; j <= s; j++) {
    pair<long long, long long> ex = ps[j] * qs[s - j];
    pair<long long, long long> sum = qh(ex, r).first * C[s][j];
    if ((s - j) & 1)
      ans = ans - sum;
    else
      ans = ans + sum;
  }
  ans = ans * qp(pair<long long, long long>(0, inv5), s);
  return ans.first;
}
long long gsum(long long r) {
  long long ans = 0;
  for (int i = 0; i <= k; i++) ans = (ans + gfib(r, i) * c[i] % MOD) % MOD;
  return ans;
}
int main() {
  ps[0] = qs[0] = pair<long long, long long>(1, 0);
  for (int i = 1; i <= 200; i++) ps[i] = ps[i - 1] * p, qs[i] = qs[i - 1] * q;
  ss[0][0] = C[0][0] = 1;
  for (int i = 1; i <= 200; i++) {
    ss[i][0] = 0;
    C[i][0] = 1;
    for (int j = 1; j <= i; j++)
      ss[i][j] = (ss[i - 1][j - 1] - mulm(i - 1, ss[i - 1][j])) % MOD,
      C[i][j] = (C[i - 1][j] + C[i - 1][j - 1]) % MOD;
  }
  scanf("%d%I64d%I64d", &k, &l, &r);
  l += 2;
  r += 2;
  gc();
  long long ans = gsum(r) - gsum(l - 1);
  ans = (ans % MOD + MOD) % MOD;
  printf("%I64d\n", ans);
}