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 powr(long long a, long long b, long long mod) {
  long long x = 1 % mod;
  a %= mod;
  while (b) {
    if (b & 1) x = (x * a) % mod;
    a = (a * a) % mod;
    b >>= 1;
  }
  return x;
}
long long inv(long long a, long long mod) { return powr(a, mod - 2, mod); }
const int maxn = 1e6 + 10;
const long long mod = 1e9 + 7;
struct num {
  long long x, y;
  num() {}
  num(long long _x, long long _y) { x = _x, y = _y; }
  num operator+(num a) { return num((x + a.x) % mod, (y + a.y) % mod); }
  num operator-(num a) {
    return num((x - a.x + mod) % mod, (y - a.y + mod) % mod);
  }
  num operator*(num a) {
    return num(((x * a.x) % mod + 5 * ((y * a.y) % mod)) % mod,
               ((x * a.y) % mod + (y * a.x) % mod) % mod);
  }
  num operator/(num b) {
    num a = (*this);
    num c = num(b.x, (mod - b.y) % mod);
    num d = a * c;
    long long _inv = inv((b * c).x, mod);
    d.x = (d.x * _inv) % mod;
    d.y = (d.y * _inv) % mod;
    return d;
  }
  num powr(long long n) {
    num a = num(1, 0), b = (*this);
    while (n) {
      if (n & 1) a = a * b;
      b = b * b;
      n >>= 1;
    }
    return a;
  }
  num gp(long long n) {
    if (x == 1 && y == 0) return num((n + 1) % mod, 0);
    num p = num(1, 0);
    return (powr(n + 1) - p) / ((*this) - p);
  }
  void _print() { cerr << "(" << x << "," << y << ")\n"; }
};
num phi, iphi, sq5;
long long fib(long long n) { return ((phi.powr(n) - iphi.powr(n)) / sq5).x; }
const int N = 205;
long long C[N][N], s[N][N], fact[N];
long long fibpowsum(long long n, int k) {
  num ret = num(0, 0);
  num den = sq5.powr(k);
  for (int r = 0; r <= k; r++) {
    long long mul = C[k][r];
    if (r & 1) mul = mod - mul;
    num NUM = iphi.powr(r) * phi.powr(k - r);
    NUM = NUM.gp(n);
    ret = ret + num((NUM.x * mul) % mod, (NUM.y * mul) % mod);
  }
  ret = ret / den;
  return ret.x;
}
long long fibonacci[maxn];
long long brutefibsum(long long n, int k) {
  long long ret = 0;
  for (int i = 0; i <= n; i++) ret = (ret + powr(fibonacci[i], k, mod)) % mod;
  return ret;
}
int main() {
  fibonacci[0] = 0;
  fibonacci[1] = 1;
  for (int i = 2; i < maxn; i++)
    fibonacci[i] = (fibonacci[i - 1] + fibonacci[i - 2]) % mod;
  phi = num(inv(2, mod), inv(2, mod));
  iphi = num(phi.x, mod - phi.y);
  sq5 = num(0, 1);
  fact[0] = 1;
  for (int i = 1; i < N; i++) fact[i] = (fact[i - 1] * i) % mod;
  for (int i = 0; i < N; i++) {
    C[i][0] = 1;
    s[i][0] = 0;
    s[0][0] = 1;
    for (__typeof(i + 1) j = (1) - ((1) > (i + 1));
         j != (i + 1) - ((1) > (i + 1)); j += 1)
      C[i][j] = (C[i - 1][j] + C[i - 1][j - 1]) % mod,
      s[i][j] = ((s[i - 1][j - 1] - (i - 1) * s[i - 1][j]) % mod + mod) % mod;
  }
  long long a, b, k;
  cin >> k >> a >> b;
  long long ans1 = 0;
  for (int i = 1; i <= k; i++) {
    ans1 = (ans1 + s[k][i] * (fibpowsum(b + 2, i) - fibpowsum(a + 1, i))) % mod;
  }
  ans1 = (ans1 + mod) % mod;
  ans1 = (ans1 * inv(fact[k], mod)) % mod;
  cout << ans1;
}