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;
using ll = long long;
const ll mod = 1e9L + 7;
const int N = 211;
ll c[N][N];
ll qpow(ll a, ll b) {
  ll r = 1;
  for (; b; b /= 2) {
    if (b & 1) r = r * a % mod;
    a = a * a % mod;
  }
  return r;
}
struct num {
  ll a, b;
  void w() { cout << a << ' ' << b << '\n'; }
  num operator-(num x) { return {a - x.a, b - x.b}; }
  num operator+(num x) { return {a + x.a, b + x.b}; }
  num operator*(num x) {
    num r = {a * x.a + 5 * b * x.b, a * x.b + b * x.a};
    r.a %= mod;
    r.b %= mod;
    return r;
  }
  num operator/(num x) {
    return (*this) * num{x.a, -x.b} *
           num{qpow((x.a * x.a - 5 * x.b * x.b) % mod, mod - 2), 0};
  }
};
num qpow(num a, ll b) {
  num r = {1, 0};
  for (; b; b /= 2) {
    if (b & 1) r = r * a;
    a = a * a;
  }
  return r;
}
ll fsum(ll n, int k) {
  num r = {0, 0};
  ll inv2 = qpow(2, mod - 2), inv5 = qpow(5, mod - 2);
  num a = {inv2, inv2}, b = {inv2, -inv2};
  for (int i = 0; i <= k; i++) {
    num q = qpow(a, i) * qpow(b, k - i);
    q.a = (q.a % mod + mod) % mod;
    q.b = (q.b % mod + mod) % mod;
    num sp = num{c[k][i] * (((k - i) & 1) ? -1 : 1), 0} * qpow(num{0, inv5}, k);
    num t = (num{1, 0} - qpow(q, n + 1)) / (num{1, 0} - q);
    if (q.a == 1 && q.b == 0) t = {(n + 1) % mod, 0};
    r = r + (sp * t);
  }
  return r.a % mod;
}
ll dp[N][N];
int main() {
  for (int i = 0; i < N; i++) {
    c[i][0] = 1;
    for (int j = 1; j <= i; j++)
      c[i][j] = (c[i - 1][j] + c[i - 1][j - 1]) % mod;
  }
  int k;
  cin >> k;
  dp[0][0] = 1;
  for (int i = 1; i <= k; i++)
    for (int j = 0; j < i; j++) {
      dp[i][j] -= (i - 1) * dp[i - 1][j];
      dp[i][j + 1] += dp[i - 1][j];
      dp[i][j] %= mod;
      dp[i][j + 1] %= mod;
    }
  ll l, r;
  cin >> l >> r;
  l += 2;
  r += 2;
  ll ans = 0;
  for (int i = 0; i <= k; i++) {
    for (int j = 1; j <= k; j++) {
      dp[k][i] *= qpow(j, mod - 2);
      dp[k][i] %= mod;
    }
    ans += dp[k][i] * fsum(r, i);
    ans -= dp[k][i] * fsum(l - 1, i);
    ans %= mod;
  }
  cout << (ans + mod) % mod << '\n';
}