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 MAXK = 200;
const int MOD = int(1E9) + 7;
struct mint {
  int x, y;
  mint(int _x = 0, int _y = 0) : x(_x), y(_y) {}
  friend mint operator+(mint a, mint b) {
    int x = (a.x + b.x >= MOD ? a.x + b.x - MOD : a.x + b.x);
    int y = (a.y + b.y >= MOD ? a.y + b.y - MOD : a.y + b.y);
    return mint(x, y);
  }
  friend mint operator-(mint a, mint b) {
    int x = (a.x - b.x < 0 ? a.x - b.x + MOD : a.x - b.x);
    int y = (a.y - b.y < 0 ? a.y - b.y + MOD : a.y - b.y);
    return mint(x, y);
  }
  friend mint operator*(mint a, mint b) {
    int x = (1LL * a.x * b.x + 5LL * a.y * b.y) % MOD;
    int y = (1LL * a.x * b.y + 1LL * a.y * b.x) % MOD;
    return mint(x, y);
  }
  friend mint mpow(mint a, long long k) {
    mint r = 1;
    while (k) {
      if (k & 1) r = r * a;
      a = a * a;
      k >>= 1;
    }
    return r;
  }
  friend mint operator/(mint a, mint b) {
    mint p = a * mint(b.x, (MOD - b.y) % MOD),
         q = mint((1LL * b.x * b.x % MOD + MOD - 5LL * b.y * b.y % MOD) % MOD,
                  0);
    return p * mpow(q, MOD - 2);
  }
} s[MAXK + 5][MAXK + 5], c[MAXK + 5][MAXK + 5];
const mint A1 = 1 / mint(0, 1);
const mint A2 = (1 + mint(0, 1)) / 2;
const mint B1 = 1 / mint(0, MOD - 1);
const mint B2 = (1 - mint(0, 1)) / 2;
void init() {
  for (int i = 0; i <= MAXK; i++) {
    c[i][0] = 1;
    for (int j = 1; j <= i; j++) c[i][j] = c[i - 1][j] + c[i - 1][j - 1];
  }
  for (int i = 0; i <= MAXK; i++)
    for (int j = 0; j <= i; j++)
      c[i][j] = c[i][j] * mpow(A1, j) * mpow(B1, i - j);
  s[0][0] = 1;
  for (int i = 1; i <= MAXK; i++)
    for (int j = 1; j <= i; j++)
      s[i][j] = s[i - 1][j - 1] + (i - 1) * s[i - 1][j];
  for (int i = 0; i <= MAXK; i++)
    for (int j = 0; j <= MAXK; j++)
      if ((i + j) & 1) s[i][j] = 0 - s[i][j];
}
int k;
mint get(mint a, long long m) {
  if (a.x == 1 && a.y == 0)
    return m % MOD + 1;
  else
    return (mpow(a, m + 1) - 1) / (a - 1);
}
mint solve(long long m) {
  mint ans = 0;
  for (int j = 0; j <= k; j++) {
    mint del = 0;
    for (int p = 0; p <= j; p++) {
      mint tmp = mpow(A2, p) * mpow(B2, j - p);
      del = del + c[j][p] * get(tmp, m);
    }
    ans = ans + s[k][j] * del;
  }
  return ans;
}
int main() {
  long long l, r;
  init();
  scanf("%d%lld%lld", &k, &l, &r), l += 2, r += 2;
  mint p = 1;
  for (int i = 1; i <= k; i++) p = p * i;
  printf("%d\n", ((solve(r) - solve(l - 1)) / p).x);
}