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 = 1000000007;
long long k, L, R;
long long qp(long long a, long long b) {
  long long ret = 1;
  while (b) {
    if (b & 1) ret = ret * a % mod;
    a = a * a % mod;
    b >>= 1;
  }
  return ret;
}
long long Inv[208];
long long inv(long long a) {
  if (a > 200)
    return qp(a, mod - 2);
  else if (!Inv[a])
    return Inv[a] = qp(a, mod - 2);
  else
    return Inv[a];
}
long long CC[208][208];
long long S[208][208];
void init() {
  CC[0][0] = 1;
  for (long long i = 1; i <= 200; ++i) {
    CC[i][0] = 1;
    for (long long j = 1; j <= i; ++j) {
      CC[i][j] = CC[i][j - 1] * inv(j) % mod * (i - j + 1) % mod;
    }
  }
  S[0][0] = 1;
  for (long long i = 1; i <= 200; ++i) {
    S[i][0] = 0;
    for (long long j = 1; j < i; ++j) {
      S[i][j] =
          ((S[i - 1][j - 1] - (i - 1) * S[i - 1][j] % mod) % mod + mod) % mod;
    }
    S[i][i] = 1;
  }
}
struct tls {
  long long a, b;
  tls() {}
  tls(long long _a, long long _b) {
    a = (_a % mod + mod) % mod;
    b = (_b % mod + mod) % mod;
  }
  tls operator+(const tls& t) const {
    return tls((a + t.a) % mod, (b + t.b) % mod);
  }
  tls operator-(const tls& t) const {
    return tls((a - t.a + mod) % mod, (b - t.b + mod) % mod);
  }
  tls operator*(const tls& t) const {
    return tls((a * t.a % mod + 5 * b % mod * t.b % mod) % mod,
               (a * t.b % mod + b * t.a % mod) % mod);
  }
  tls operator/(const tls& t) const {
    long long r =
        inv((t.a * t.a % mod - 5 * t.b % mod * t.b % mod + mod) % mod);
    if ((t.a * t.a % mod - 5 * t.b % mod * t.b % mod + mod) % mod == 0) throw;
    return tls(
        r * (((a * t.a % mod) - (b * t.b % mod * 5 % mod) + mod) % mod) % mod,
        (r * (((t.a * b % mod) - (a * t.b % mod) + mod) % mod) % mod));
  }
};
tls qp(tls a, long long b) {
  tls ret(1, 0);
  while (b) {
    if (b & 1) ret = ret * a;
    a = a * a;
    b >>= 1;
  }
  return ret;
}
ostream& operator<<(ostream& out, tls p) {
  out << p.a << "+" << p.b << "sqrt(5)";
  return out;
}
long long gao(long long n, long long k) {
  tls a(inv(2) % mod, inv(2) % mod),
      b(inv(2) % mod, (mod - inv(2) % mod) % mod);
  tls ret(0, 0);
  for (long long j = 0; j <= k; ++j) {
    tls tot(0, 0);
    for (long long p = 0; p <= j; ++p) {
      tls temp(1, 0);
      tls q = qp(a / b, p) * qp(b, j);
      if (q.a == 1 && q.b == 0) {
        temp = temp * tls(n, 0);
      } else {
        temp = temp * qp(q, 3) * (tls(1, 0) - qp(q, n));
        temp = temp / (tls(1, 0) - q);
      }
      temp = temp * tls(qp(mod - 1, j - p), 0) * tls(CC[j][p], 0);
      tot = tot + temp;
    }
    tot = tot * tls(S[k][j], 0) * qp(tls(0, inv(5)), j);
    ret = ret + tot;
  }
  for (long long i = 1; i <= k; ++i) {
    ret = ret * tls(inv(i), 0);
  }
  return ret.a;
}
int main() {
  init();
  cin >> k >> L >> R;
  cout << (gao(R, k) - gao(L - 1, k) + mod) % mod << endl;
  return 0;
}