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 int Maxn = 205, p = 1e9 + 7;
int k;
long long ans, l, r, fac[Maxn], S[Maxn][Maxn], C[Maxn][Maxn];
long long get_inv(int x) {
  if (x <= 1) return 1;
  return (p - p / x) * get_inv(p % x) % p;
}
struct Complex {
  long long Re, Im;
  Complex(long long _re = 0, long long _im = 0) { Re = _re, Im = _im; }
  Complex operator+(const Complex &A) const {
    return (Complex){(Re + A.Re) % p, (Im + A.Im) % p};
  }
  Complex operator-(const Complex &A) const {
    return (Complex){(Re - A.Re + p) % p, (Im - A.Im + p) % p};
  }
  Complex operator*(const Complex &A) const {
    return (Complex){(Re * A.Re + 5 * Im * A.Im) % p,
                     (Re * A.Im + Im * A.Re) % p};
  }
  Complex operator/(const Complex &A) const {
    Complex result = *this * (Complex){A.Re, (p - A.Im) % p};
    return result *
           (Complex){get_inv((A.Re * A.Re % p + p - 5 * A.Im * A.Im % p) % p),
                     0};
  }
  bool operator==(const Complex &A) const { return Re == A.Re && Im == A.Im; }
} a, b, x, y;
Complex fast_pow(Complex x, long long y) {
  Complex ans = (Complex){1, 0}, now = x;
  while (y) {
    if (y & 1) ans = ans * now;
    now = now * now;
    y >>= 1;
  }
  return ans;
}
Complex work(Complex x) {
  if (x == (Complex){1, 0}) return (Complex){(r - l + 1) % p, 0};
  return (fast_pow(x, r + 1) + p - 1) / (x + p - 1) -
         (fast_pow(x, l) + p - 1) / (x + p - 1);
}
int main() {
  scanf("%d%lld%lld", &k, &l, &r);
  l += 2, r += 2;
  S[0][0] = C[0][0] = fac[0] = 1;
  for (int i = 1; i <= k; i++) {
    fac[i] = fac[i - 1] * i % p;
    C[i][0] = 1;
    for (int j = 1; j <= i; j++) {
      C[i][j] = (C[i - 1][j - 1] + C[i - 1][j]) % p;
      S[i][j] = (S[i - 1][j - 1] + p - S[i - 1][j] * (i - 1) % p) % p;
    }
  }
  a.Im = get_inv(5), b.Im = p - get_inv(5);
  x.Re = x.Im = y.Re = (p + 1) / 2, y.Im = p - (p + 1) / 2;
  for (int i = 0; i <= k; i++)
    for (int j = 0; j <= i; j++) {
      Complex tmp = fast_pow(x, j) * fast_pow(y, i - j);
      (ans +=
       (fast_pow(a, j) * fast_pow(b, i - j) * S[k][i] * C[i][j] * work(tmp))
           .Re) %= p;
    }
  printf("%lld", ans * get_inv(fac[k]) % p);
  return 0;
}