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>
const int N = 200 + 10, MOD = 1000000007;
struct Info {
  int x, y;
  Info() { x = y = 0; }
  Info(int _x) : x(_x), y(0) {}
  Info(int _x, int _y) : x(_x), y(_y) {}
  inline Info conj() const { return Info(x, (MOD - y) % MOD); }
};
int power(int base, int exp) {
  int res = 1;
  for (; exp; exp >>= 1) {
    if (exp & 1) res = (long long)res * base % MOD;
    base = (long long)base * base % MOD;
  }
  return res;
}
inline Info operator+(const Info &lhs, const Info &rhs) {
  return Info((lhs.x + rhs.x) % MOD, (lhs.y + rhs.y) % MOD);
}
inline Info operator-(const Info &lhs, const Info &rhs) {
  return Info((lhs.x - rhs.x + MOD) % MOD, (lhs.y - rhs.y + MOD) % MOD);
}
inline Info operator*(const Info &lhs, const Info &rhs) {
  return Info(((long long)lhs.x * rhs.x + 5LL * lhs.y * rhs.y) % MOD,
              ((long long)lhs.x * rhs.y + (long long)lhs.y * rhs.x) % MOD);
}
inline Info operator/(Info lhs, Info rhs) {
  Info temp = rhs.conj();
  lhs = lhs * temp;
  rhs = rhs * temp;
  lhs = lhs * power(rhs.x, MOD - 2);
  return lhs;
}
inline Info operator^(Info base, long long exp) {
  Info res = 1;
  for (; exp; exp >>= 1) {
    if (exp & 1) res = res * base;
    base = base * base;
  }
  return res;
}
const Info S(0, 1), A = (1 + S) / 2, B = (1 - S) / 2;
Info binom[N][N];
Info sum(const Info &x, long long n) {
  if (x.x == 1 && x.y == 0) return n % MOD;
  Info res = (1 - (x ^ n)) / (1 - x);
  return res * x;
}
Info fib(int n) {
  Info res = (A ^ n) - (B ^ n);
  res = res / S;
  return res;
}
Info calc(long long n, int k) {
  Info res = 0;
  for (int i = 0; i <= k; ++i) {
    Info cur = binom[k][i] * sum((A ^ i) * (B ^ (k - i)), n);
    if ((k - i) & 1)
      res = res - cur;
    else
      res = res + cur;
  }
  return res * ((1 / S) ^ k);
}
Info s[N][N];
Info solve(long long n, int k) {
  static Info f[N];
  for (int i = 0; i <= k; ++i) f[i] = calc(n, i);
  Info res = 0;
  for (int i = 1; i <= k; ++i) {
    Info cur = s[k][i] * f[i];
    if ((k - i) & 1)
      res = res - cur;
    else
      res = res + cur;
  }
  return res;
}
int main() {
  binom[0][0] = 1;
  for (int i = 1; i < N; ++i)
    for (int j = 0; j < N; ++j)
      binom[i][j] = binom[i - 1][j] + (j ? binom[i - 1][j - 1] : 0);
  s[1][1] = 1;
  for (int i = 2; i < N; ++i)
    for (int j = 1; j <= i; ++j)
      s[i][j] = s[i - 1][j - 1] + (i - 1) * s[i - 1][j];
  int k;
  long long l, r;
  scanf("%d%lld%lld", &k, &l, &r);
  l += 2, r += 2;
  Info ans = solve(r, k) - solve(l - 1, k);
  for (int i = k; i; --i) ans = ans / i;
  printf("%d\n", ans.x);
  return 0;
}