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>
long long inv(int a, int p = 1000000007) {
  return a == 1 ? 1 : (1 + p * (a - inv(p % a, a))) / a % p;
}
struct num {
  int a, b;
  num(int a = 0, int b = 0) {
    this->a = a;
    this->b = b;
  }
  num operator+(num x) {
    return num((a + x.a) % 1000000007, (b + x.b) % 1000000007);
  }
  num operator-(num x) {
    return num((a - x.a + 1000000007) % 1000000007,
               (b - x.b + 1000000007) % 1000000007);
  }
  num operator*(num x) {
    return num((1ll * a * x.a + 5ll * b * x.b) % 1000000007,
               (1ll * a * x.b + 1ll * b * x.a) % 1000000007);
  }
};
num pow(num a, long long n, bool t = 0) {
  num p = 1, s = 0;
  int i = 0;
  while (n >> i) i++;
  while (i--) {
    s = s * (p + 1), p = p * p;
    if (n >> i & 1) s = s + p, p = p * a;
  }
  return t ? s : p;
}
long long a[210], C[210];
num pA[210], pB[210];
int main() {
  int k;
  long long l, r;
  std::cin >> k >> l >> r;
  *pA = *pB = *a = *C = 1;
  for (int i = 1; i <= k; (*a *= 1000000007 + 2 - ++i) %= 1000000007) {
    for (int j = i; j; j--)
      a[j] = (a[j - 1] + a[j] * (1000000007 - i + 1)) % 1000000007;
    pA[i] = pow(num(inv(2), inv(2)), i);
    pB[i] = pow(num(inv(2), 1000000007 - inv(2)), i);
  }
  num S = 0, c = *a, x;
  for (int i = 0; i <= k; i++, c = pow(num(0, inv(5)), i) * a[i]) {
    for (int j = i; j >= 0; j--) {
      x = (pow(pA[j] * pB[i - j], r + 3, 1) -
           pow(pA[j] * pB[i - j], l + 2, 1)) *
          (j ? (C[j] += C[j - 1]) %= 1000000007 : 1) * c;
      i - j& 1 ? S = S - x : S = S + x;
    }
  }
  for (int i = 1; i <= k; i++) S = S * inv(i);
  std::cout << S.a << '\n';
}