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 N = 201, D = 1e9 + 7, U = 5e8 + 4, V = 4e8 + 3;
long long t, k, l, r, C[N][N], S[N][N], f, A;
int Q(long long a, int b) {
  t = 1;
  while (b) {
    if (b & 1) (t *= a) %= D;
    (a *= a) %= D, b /= 2;
  }
  return t;
}
struct T {
  long long x, y;
  T(const int X = 0, const int Y = 0) : x(X), y(Y) {}
  T operator+(const T &c) const { return T((x + c.x) % D, (y + c.y) % D); }
  T operator-(const T &c) const {
    return T((x - c.x + D) % D, (y - c.y) + D % D);
  }
  T operator*(const T &c) const {
    return T((x * c.x + 5 * y * c.y) % D, (x * c.y + y * c.x) % D);
  }
  T V() const {
    T A(x, D - y);
    return A * Q(((x * x - 5 * y * y) % D + D) % D, D - 2);
  }
  T operator/(const T &c) const { return *this * c.V(); }
  bool operator==(const T &c) const { return x == c.x && y == c.y; }
};
T a(0, V), b(0, D - V), x(U, U), y(U, D - U);
T P(T a, long long b) {
  T t(1, 0);
  while (b) {
    if (b & 1) t = t * a;
    a = a * a, b /= 2;
  }
  return t;
}
T F(T x, long long l, long long r) {
  if (x == 1) return (r - l + 1) % D;
  return (P(x, r + 1) - P(x, l)) / (x - 1);
}
int main() {
  cin >> k >> l >> r, S[1][1] = f = 1;
  for (int i = 0; i <= k; i++) C[i][0] = C[i][i] = 1;
  for (int i = 1; i <= k; i++)
    for (int j = 1; j < i; j++) C[i][j] = (C[i - 1][j] + C[i - 1][j - 1]) % D;
  for (int i = 2; i <= k; i++)
    for (int j = 1; j <= i; j++)
      S[i][j] = ((i - 1) * S[i - 1][j] + S[i - 1][j - 1]) % D;
  for (int i = 1; i <= k; i++) (f *= i) %= D;
  for (int i = 0; i <= k; i++)
    for (int j = 0; j <= i; j++)
      (A +=
       Q(-1, k - i) * C[i][j] * S[k][i] % D *
       (P(a, j) * P(b, i - j) * F(P(x, j) * P(y, i - j), l + 2, r + 2)).x) %= D;
  cout << Q(f, D - 2) * (A + D) % D;
  return 0;
}