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 N = 504, P = 1000000007, i2 = 500000004;
int fpow(int a, int b) {
  long long w(1), o(a);
  while (b) {
    if (b & 1) w = w * o % P;
    o = o * o % P;
    b >>= 1;
  }
  return w;
}
int Inv(int x) { return fpow(x, P - 2); }
struct cp {
  int x, y;
  cp(int dx = 0, int dy = 0) {
    x = dx;
    y = dy;
  }
};
cp operator+(const cp& a, const cp& b) {
  return cp((a.x + b.x) % P, (a.y + b.y) % P);
}
cp operator-(const cp& a, const cp& b) {
  return cp((a.x + P - b.x) % P, (a.y + P - b.y) % P);
}
cp operator*(const cp& a, const cp& b) {
  return cp(((long long)a.x * b.x + (long long)a.y * b.y * 5) % P,
            ((long long)a.x * b.y + (long long)a.y * b.x) % P);
}
cp operator*(const cp& a, const int T) {
  return cp((long long)a.x * T % P, (long long)a.y * T % P);
}
cp operator/(const cp& a, const cp& b) {
  return a * cp(b.x, P - b.y) *
         Inv((((long long)b.x * b.x - (long long)b.y * b.y * 5) % P + P) % P);
}
cp fexp(cp a, long long b) {
  cp o(1, 0);
  while (b) {
    if (b & 1) o = o * a;
    a = a * a;
    b >>= 1;
  }
  return o;
}
const cp f1(i2, i2), f2(i2, P - i2);
long long L, R;
int K, fac[N], ifac[N], S[N][N];
int C(int n, int m) {
  return (long long)fac[n] * ifac[m] % P * ifac[n - m] % P;
}
int solve(long long n, int k) {
  cp o(0, 0);
  for (int l = 0; l <= k; l++) {
    cp u = fexp(f1, k - l) * fexp(f2, l), v;
    if (u.x == 1 && u.y == 0) {
      v = cp((n + 1) % P, 0);
    } else {
      cp t = fexp(u, n + 1);
      v = cp(t.x - 1, t.y) / cp(u.x - 1, u.y);
    }
    v = v * C(k, l);
    if (l & 1)
      o = o - v;
    else
      o = o + v;
  }
  o = o * fexp(cp(0, Inv(5)), k);
  return o.x;
}
int calc(long long n) {
  int o = 0;
  for (int i = 0; i <= K; i++)
    o = (o + (long long)S[K][i] * (solve(n + 2, i) + P - 2)) % P;
  o = (long long)o * ifac[K] % P;
  return o;
}
int main() {
  fac[0] = 1;
  for (int i = 1; i < N; i++) fac[i] = (long long)fac[i - 1] * i % P;
  ifac[N - 1] = Inv(fac[N - 1]);
  for (int i = N - 2; ~i; i--) ifac[i] = (long long)ifac[i + 1] * (i + 1) % P;
  S[0][0] = 1;
  for (int i = 1; i < N; i++)
    for (int j = 1; j <= i; j++)
      S[i][j] =
          ((S[i - 1][j - 1] - (long long)S[i - 1][j] * (i - 1)) % P + P) % P;
  scanf("%d %I64d %I64d", &K, &L, &R);
  printf("%d", ((calc(R) - calc(L - 1)) % P + P) % P);
  return 0;
}