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 mod = (int)1e9 + 7;
const int inf = (1 << 30) - 1;
const int N = 505;
long long binpow(long long x, long long n) {
  long long res = 1;
  while (n) {
    if (n & 1) res = res * x % mod;
    x = x * x % mod;
    n >>= 1;
  }
  return res;
}
long long inv(long long x) { return binpow(x, mod - 2); }
struct num {
  long long a, b;
  num() : a(0), b(0) {}
  num(long long x) : a(x % mod), b(0) {}
  num(long long a, long long b) : a(a % mod), b(b % mod) {}
  bool const operator==(const num &n) const { return a == n.a && b == n.b; }
  num const operator+(const num &n) const { return num(a + n.a, b + n.b); }
  num const operator-(const num &n) const {
    return num(a - n.a + mod, b - n.b + mod);
  }
  num const operator*(const num &n) const {
    return num(a * n.a + 5 * b * n.b, a * n.b + b * n.a);
  }
  num const operator*(long long k) const { return num(a * k, b * k); }
  num const operator/(long long k) const {
    k = inv(k);
    return num(a * k, b * k);
  }
} powA[N], powB[N], powX[N];
const num E = num(1, 0);
const num A = num(1, 1) / 2;
const num B = num(1, mod - 1) / 2;
const num X = num(0, inv(5));
int k;
long long s[N][N], c[N][N], factK;
void preprocess() {
  s[0][0] = c[0][0] = 1;
  for (int i = 1; i < N; i++) {
    s[i][0] = (mod - i + 1) * s[i - 1][0] % mod;
    c[i][0] = 1;
    for (int j = 1; j <= i; j++) {
      c[i][j] = (c[i - 1][j - 1] + c[i - 1][j]) % mod;
      s[i][j] =
          (s[i - 1][j - 1] + mod + (mod - i + 1) * s[i - 1][j] % mod) % mod;
    }
  }
  factK = 1;
  powA[0] = powB[0] = powX[0] = E;
  for (int i = 1; i <= k; i++) {
    factK = factK * i % mod;
    powA[i] = powA[i - 1] * A;
    powB[i] = powB[i - 1] * B;
    powX[i] = powX[i - 1] * X;
  }
}
pair<num, num> get_progression(num C, long long n) {
  if (n == 0) return make_pair(E, E);
  if (n == 1) return make_pair(E + C, C);
  pair<num, num> p = get_progression(C, n / 2);
  if (n & 1)
    return make_pair(p.first * (E + C * p.second), p.second * p.second * C);
  return make_pair(p.first - p.second + p.second * p.first,
                   p.second * p.second);
}
int get(long long n) {
  long long ans = 0;
  for (int j = 1; j <= k; j++) {
    for (int t = 0; t <= j; t++) {
      long long coef = s[k][j] * c[j][t] % mod;
      if ((j - t) & 1) coef = (mod - coef) % mod;
      num num_part = get_progression(powA[t] * powB[j - t], n).first;
      num_part = num_part * powX[j];
      ans += coef * num_part.a % mod;
      ans %= mod;
    }
  }
  return ans * inv(factK) % mod;
}
int main() {
  long long l, r;
  cin >> k >> l >> r;
  preprocess();
  long long ans = get(r + 2) + mod - get(l + 1);
  ans %= mod;
  printf("%d\n", (int)ans);
  return 0;
}