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 = 1e9 + 7;
;
long long tmp;
long long qmi(long long a, long long b = mod - 2) {
  long long ans = 1;
  while (b) {
    if (b & 1) ans = ans * a % mod;
    a = a * a % mod;
    b >>= 1;
  }
  return ans;
}
struct sq {
  long long a, b;
  sq(long long x, long long y) { a = x, b = y; }
};
long long Mod(long long x) { return (x % mod + mod) % mod; }
inline sq operator+(const sq& l, const sq& r) {
  return sq{Mod(l.a + r.a), Mod(l.b + r.b)};
}
inline sq operator-(const sq& l, const sq& r) {
  return sq{Mod(l.a - r.a), Mod(l.b - r.b)};
}
inline sq operator*(const sq& l, const sq& r) {
  return sq{Mod(l.a * r.a % mod + l.b * r.b * tmp % mod),
            Mod(l.a * r.b % mod + l.b * r.a % mod)};
}
inline sq inv(const sq& l) {
  long long c = (l.a * l.a % mod - l.b * l.b % mod * tmp % mod) % mod;
  if (c < 0) c += mod;
  c = qmi(c, mod - 2);
  return {Mod(l.a * c % mod), Mod((mod - c) * l.b % mod)};
}
inline sq qs(sq l, long long b = mod - 2) {
  sq ans = {1, 0};
  while (b) {
    if (b & 1) ans = ans * l;
    l = l * l;
    b >>= 1;
  }
  return ans;
}
long long s[510][510];
long long p[510];
long long iv[510];
long long _iv[510];
void init() {
  s[0][0] = 1;
  for (int i = 1; i <= 300; i++) {
    s[i][0] = 0;
    for (int j = 1; j <= i; j++) {
      s[i][j] = (s[i - 1][j - 1] + ((i - 1) * s[i - 1][j]) % mod) % mod;
    }
  }
  p[0] = p[1] = iv[0] = iv[1] = _iv[0] = _iv[1] = 1;
  for (int i = 2; i <= 300; i++) {
    p[i] = p[i - 1] * i % mod;
    iv[i] = (mod - mod / i) * iv[mod % i] % mod;
    _iv[i] = _iv[i - 1] * iv[i] % mod;
  }
}
long long k, l, r;
long long C(long long a, long long b) {
  if (b > a) return 0;
  return p[a] * _iv[b] % mod * _iv[a - b] % mod;
}
sq sum(sq x, long long t) {
  sq t1 = qs(x, t + 1);
  t1 = t1 - x;
  sq t2 = x - sq{1, 0};
  return t1 * inv(t2);
}
sq get_ans(sq x, long long l, long long r) {
  if (x.a == 1 && x.b == 0) return x * sq{r - l + 1, 0};
  return sum(x, r) - sum(x, l - 1);
}
int main() {
  tmp = 5;
  cin >> k >> l >> r;
  l += 2, r += 2;
  init();
  sq res(0, 0);
  sq A(0, iv[5]);
  sq B(0, mod - iv[5]);
  sq a(iv[2], iv[2]);
  sq b(iv[2], mod - iv[2]);
  long long f = k % 2 ? -1 : 1;
  for (int i = 0; i <= k; i++) {
    sq qwq(0, 0);
    for (int j = 0; j <= i; j++) {
      sq qaq = sq(C(i, j), 0) * qs(A, j) * qs(B, i - j) *
               get_ans(qs(a, j) * qs(b, i - j), l, r);
      qwq = qwq + qaq;
    }
    res = res + sq{f, 0} * qwq * sq{s[k][i], 0};
    f *= -1;
  }
  res.a = res.a * qmi(p[k], mod - 2) % mod;
  cout << res.a << endl;
}