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 long long mo = 1e9 + 7;
int k;
long long C[205][205], F[205][205], l, r, ans, I2, I5;
struct num {
  long long a, b;
  num(long long _a = 0, long long _b = 0) { a = _a, b = _b; }
} A, B;
long long fpm(long long x, long long y) {
  long long s = 1;
  while (y) {
    if (y & 1) s = (s * x) % mo;
    y >>= 1, x = (x * x) % mo;
  }
  return s;
}
num operator+(num p, num q) { return num((p.a + q.a) % mo, (p.b + q.b) % mo); }
num operator-(num p, num q) {
  return num((p.a - q.a + mo) % mo, (p.b - q.b + mo) % mo);
}
num operator*(num p, long long r) { return num(p.a * r % mo, p.b * r % mo); }
num operator*(long long r, num p) { return num(p.a * r % mo, p.b * r % mo); }
num operator*(num p, num q) {
  return num((p.a * q.a + 5 * p.b % mo * q.b) % mo,
             (p.a * q.b + p.b * q.a) % mo);
}
num T(num p) {
  long long x = (5 * p.b % mo * p.b - p.a * p.a) % mo;
  if (x < 0) x += mo;
  x = fpm(x, mo - 2);
  return num((mo - p.a) * x % mo, p.b * x % mo);
}
num fpm(num x, long long y) {
  num s = num(1, 0);
  while (y) {
    if (y & 1) s = s * x;
    y >>= 1, x = x * x;
  }
  return s;
}
long long S(long long n) {
  int i, j;
  long long px, res = 0;
  num pr = num(1, 0), q, now, sum;
  for (i = 0; i <= k; i++) {
    sum = num(0, 0);
    for (j = 0; j <= i; j++) {
      px = (i - j) & 1 ? mo - C[i][j] : C[i][j];
      q = fpm(A, j) * fpm(B, i - j);
      if (q.a == 1 && q.b == 0)
        now = num(n % mo, 0);
      else
        now = fpm(q, 3) * (fpm(q, n) - num(1, 0)) * T(q - num(1, 0));
      sum = sum + now * px;
    }
    sum = sum * F[k][i] * pr;
    res = (res + sum.a) % mo;
    pr = pr * num(0, I5);
  }
  for (i = 1; i <= k; i++) res = (res * fpm(i, mo - 2)) % mo;
  return res;
}
int main() {
  int i, j;
  I2 = fpm(2, mo - 2);
  I5 = fpm(5, mo - 2);
  A = num(I2, I2);
  B = num(I2, mo - I2);
  cin >> k >> l >> r;
  C[0][0] = 1;
  for (i = 1; i < 205; i++) {
    C[i][0] = C[i][i] = 1;
    for (j = 1; j < i; j++) C[i][j] = (C[i - 1][j - 1] + C[i - 1][j]) % mo;
  }
  F[0][0] = 1;
  for (i = 1; i < 205; i++)
    for (j = 0; j <= i; j++)
      (F[i][j] += F[i - 1][j] * (mo - i + 1) + F[i - 1][j - 1]) %= mo;
  ans = (S(r) - S(l - 1) + mo) % mo;
  cout << ans;
  return 0;
}