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>
#pragma comment(linker, "/STACK:64000000")
using namespace std;
const int MOD = (int)(1e9) + 7;
const int MAXN = 1 << 10;
void work() {
  int n = 30;
  vector<int> f(n);
  f[0] = 0;
  f[1] = 1;
  for (int i = 2; i < n; i++) {
    f[i] = f[i - 1] + f[i - 2];
  }
  vector<int> g(n);
  g[0] = 0;
  for (int i = 1; i < n; i++) {
    g[i] = g[i - 1] + f[i] * f[i];
  }
  for (int i = 0; i < MOD; i++) {
    if (i % 1000000 == 0) cerr << i << endl;
    if (1LL * i * i % MOD == 5) {
      cout << i << endl;
      exit(0);
    }
  }
  return;
}
int bin(int a, long long n) {
  int res = 1;
  while (n) {
    if (n & 1) res = 1LL * res * a % MOD;
    a = 1LL * a * a % MOD;
    n >>= 1;
  }
  return res;
}
int inv(int x) { return bin(x, MOD - 2); }
int fct[MAXN];
int ofct[MAXN];
int fib[MAXN];
int getC(int n, int k) {
  if (n < 0 || k > n || k < 0) return 0;
  return fct[n] * 1LL * ofct[k] % MOD * ofct[n - k] % MOD;
}
void init() {
  fct[0] = 1;
  for (int i = 1; i < MAXN; i++) fct[i] = 1LL * fct[i - 1] * i % MOD;
  for (int i = 0; i < MAXN; i++) ofct[i] = inv(fct[i]);
  fib[0] = 0;
  fib[1] = 1;
  for (int i = 2; i < MAXN; i++) {
    fib[i] = fib[i - 1] + fib[i - 2];
  }
}
struct num {
  int a, b;
  num() {}
  num(int _a, int _b) : a(_a), b(_b) {}
  num operator+(const num &n) const {
    return num((a + n.a) % MOD, (b + n.b) % MOD);
  }
  num operator-(const num &n) const {
    return num((a - n.a + MOD) % MOD, (b - n.b + MOD) % MOD);
  }
  num operator*(const num &n) const {
    return num((1LL * a * n.a + 5 * 1LL * b * n.b) % MOD,
               (1LL * a * n.b + 1LL * b * n.a) % MOD);
  }
  num conj() const { return num(a, (MOD - b) % MOD); }
  num operator/(const num &n) const {
    num o = n * n.conj();
    assert(o.b == 0);
    return ((*this) * n.conj()) / o.a;
  }
  num operator*(int d) const {
    return num(1LL * a * d % MOD, 1LL * b * d % MOD);
  }
  num operator/(int d) const {
    assert(d != 0);
    int od = inv(d);
    return (*this) * od;
  }
};
num bin(num a, long long n) {
  num res(1, 0);
  while (n) {
    if (n & 1) res = res * a;
    a = a * a;
    n >>= 1;
  }
  return res;
}
int sumfibk(long long n, int k) {
  num a = num(1, 1) / 2;
  num b = num(1, MOD - 1) / 2;
  num res(0, 0);
  for (int i = 0; i <= k; i++) {
    num t = bin(a, i) * bin(b, k - i);
    num o;
    if (t.a == 1 && t.b == 0) {
      o = t * ((n + 1) % MOD);
    } else {
      o = (num(1, 0) - bin(t, n + 1)) / (num(1, 0) - t);
    }
    res = res + o * getC(k, i) * ((k - i) % 2 == 1 ? MOD - 1 : 1);
  }
  res = res / bin(num(0, 1), k);
  assert(res.b == 0);
  return res.a;
}
int sumfibk(long long l, long long r, int k) {
  return (sumfibk(r, k) - sumfibk(l - 1, k) + MOD) % MOD;
}
long long sum(int k, long long n) {
  vector<int> cur(1, 1);
  for (int t = 0; t < k; t++) {
    cur.push_back(0);
    for (int i = (int)cur.size() - 2; i >= 0; i--) {
      cur[i + 1] = (cur[i + 1] + cur[i]) % MOD;
      cur[i] = 1LL * cur[i] * (MOD - t) % MOD;
    }
  }
  int ans = 0;
  for (int i = 0; i < (int)cur.size(); i++) {
    ans = (ans + 1LL * cur[i] * sumfibk(3, n + 2, i)) % MOD;
  }
  ans = 1LL * ans * ofct[k] % MOD;
  return ans;
}
int slow(int k, int n) {
  int ans = 0;
  for (int i = 3; i <= n + 2; i++) ans = (ans + getC(fib[i], k)) % MOD;
  return ans;
}
int main() {
  init();
  if (0)
    for (int n = 1; n <= 10; n++) {
      for (int k = 1; k <= 10; k++) {
        cerr << n << " " << k << endl;
        int ans1 = sum(k, n);
        int ans2 = slow(k, n);
        if (ans1 != ans2) {
          cerr << ans1 << " instead of " << ans2 << endl;
          sum(k, n);
          slow(k, n);
          return 0;
        }
      }
    }
  int k;
  long long l, r;
  while (cin >> k >> l >> r) {
    cout << (sum(k, r) - sum(k, l - 1) + MOD) % MOD << endl;
  }
  return 0;
}