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 INF = 1 << 28;
const long long LINF = 1ll << 61;
const long long mod = 1e9 + 7;
long long kissme(long long x, long long t) {
  long long ans = 1;
  while (t > 0) {
    if (t & 1) ans = ans * x % mod;
    x = x * x % mod;
    t >>= 1;
  }
  return ans;
}
struct number {
  int x, y;
  number(int _x = 0, int _y = 0) {
    x = _x;
    y = _y;
  }
  number operator+(number t) {
    return number((x + t.x) % mod, (y + t.y) % mod);
  }
  number operator-(number t) {
    return number((x - t.x + mod) % mod, (y - t.y + mod) % mod);
  }
  number operator*(number t) {
    return number((1ll * x * t.x + 1ll * y * t.y * 5) % mod,
                  (1ll * x * t.y + 1ll * y * t.x) % mod);
  }
  number operator*(int t) {
    return number((1ll * x * t) % mod, (1ll * y * t) % mod);
  }
  bool operator!=(number t) { return x != t.x || y != t.y; }
  number inv() {
    long long t = (1ll * x * x % mod - 5ll * y * y % mod + mod) % mod;
    t = kissme(t, mod - 2);
    return number(x * t % mod, (-y * t % mod + mod) % mod);
  }
  void operator=(int t) {
    x = t;
    y = 0;
  }
  number operator^(long long t) {
    number ret(1, 0), b = (*this);
    while (t > 0) {
      if (t & 1) ret = ret * b;
      b = b * b;
      t >>= 1;
    }
    return ret;
  }
  void out() { cout << x << "," << y << endl; }
};
number sigma(number x, long long l, long long r) {
  if (x.x == 1 && x.y == 0)
    return (r - l + 1) % mod;
  else
    return ((x ^ l) - (x ^ (r + 1))) * (number(1, 0) - x).inv();
}
long long k, l, r;
long long dp[211];
long long f[211], revf[211];
long long C(long long x, long long y) {
  if (x < y)
    return 0;
  else
    return f[x] * revf[y] % mod * revf[x - y] % mod;
}
number A, B, pa[211], pb[211];
int sign(long long n) { return n & 1 ? mod - 1 : 1; }
long long solve(long long l, long long r) {
  number c = 1, bs = number(0, kissme(5, mod - 2));
  number sum;
  for (int i = 1; i <= k; i++) {
    c = c * bs;
    number tsum;
    for (int j = 0; j <= i; j++) {
      tsum = tsum + sigma(pa[j] * pb[i - j], l, r) * C(i, j) * sign(i - j);
    }
    tsum = tsum * c;
    sum = sum + tsum * dp[i];
  }
  return sum.x;
}
int main() {
  f[0] = 1;
  for (int i = 1; i <= 205; i++) f[i] = f[i - 1] * i % mod;
  revf[205] = kissme(f[205], mod - 2);
  for (int i = 204; i >= 0; i--) revf[i] = revf[i + 1] * (i + 1) % mod;
  number A = number(1, 1) * kissme(2, mod - 2), B = number(1, 0) - A;
  pa[0] = 1;
  pb[0] = 1;
  for (int i = 1; i <= 205; i++) pa[i] = pa[i - 1] * A, pb[i] = pb[i - 1] * B;
  cin >> k >> l >> r;
  l += 2;
  r += 2;
  dp[1] = 1;
  long long fac = 1;
  for (int i = 1; i < k; i++) {
    fac = fac * (i + 1) % mod;
    for (int j = i; j >= 0; j--) {
      dp[j + 1] = (dp[j + 1] + dp[j]) % mod;
      dp[j] = dp[j] * (-i + mod) % mod;
    }
  }
  cout << solve(l, r) % mod * kissme(fac, mod - 2) % mod << endl;
  return 0;
}