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>
namespace ModuleCalculator {
const int mod = 1e9 + 7;
inline int qpow(int x, int y) {
  int res = 1;
  for (; y; y >>= 1, x = 1LL * x * x % mod)
    if (y & 1) res = 1LL * res * x % mod;
  return res;
}
inline int minus(int x, const int &y) { return x -= y, x < 0 ? x + mod : x; }
inline int plus(int x, const int &y) { return x += y, x >= mod ? x - mod : x; }
inline void add(int &x, const int &y) {
  if (x += y, x >= mod) x -= mod;
}
inline void dec(int &x, const int &y) {
  if (x -= y, x < 0) x += mod;
}
inline int nega(int x) { return x ? mod - x : 0; }
}  // namespace ModuleCalculator
using namespace ModuleCalculator;
const int MaxN = 210;
const int inv2 = qpow(2, mod - 2);
int m, K, prod, root;
struct number {
  int a, b;
  number() {}
  number(int _a) : a(_a), b(0) {}
  number(int _a, int _b) : a(_a), b(_b) {}
  inline number operator+(const number &rhs) const {
    return number(plus(a, rhs.a), plus(b, rhs.b));
  }
  inline number operator-(const number &rhs) const {
    return number(minus(a, rhs.a), minus(b, rhs.b));
  }
  inline number operator*(const number &rhs) const {
    return number((1LL * a * rhs.a + 1LL * b * rhs.b * root) % mod,
                  (1LL * a * rhs.b + 1LL * b * rhs.a) % mod);
  }
  inline number operator/(const number &rhs) const {
    int inv =
        qpow(minus(1LL * rhs.a * rhs.a % mod, 1LL * root * rhs.b * rhs.b % mod),
             mod - 2);
    return *this * number(rhs.a, nega(rhs.b)) * (number)inv;
  }
};
inline number qpown(number x, long long y) {
  number res(1, 0);
  for (; y; y >>= 1, x = x * x)
    if (y & 1) res = res * x;
  return res;
}
int f[MaxN][MaxN], C[MaxN][MaxN];
inline void init() {
  prod = 1;
  for (int i = 1; i <= K; ++i) prod = 1LL * prod * i % mod;
  prod = qpow(prod, mod - 2);
  f[0][0] = C[0][0] = 1;
  for (int i = 1; i <= K; ++i) {
    C[i][0] = 1;
    for (int j = 1; j <= i; ++j) {
      f[i][j] = f[i - 1][j - 1];
      add(C[i][j] = C[i - 1][j], C[i - 1][j - 1]);
    }
    for (int j = 0; j < i; ++j) dec(f[i][j], 1LL * (i - 1) * f[i - 1][j] % mod);
  }
}
inline number calc(number q, long long L, long long R) {
  if (q.a == 1 && !q.b)
    return (R - L + 1) % mod;
  else
    return (qpown(q, R + 1) - qpown(q, L)) / (q - number(1));
}
inline int solve(long long L, long long R) {
  L += 2, R += 2;
  root = 5;
  number a, b, x1, x2;
  x1 = number(inv2, inv2), x2 = number(inv2, nega(inv2));
  a = number(1) / number(0, 1), b = number(mod - 1) / number(0, 1);
  int res = 0;
  for (int i = 0; i <= K; ++i) {
    number sum(0, 0);
    for (int j = 0; j <= i; ++j)
      sum = sum + number(C[i][j]) * qpown(a, j) * qpown(b, i - j) *
                      calc(qpown(x1, j) * qpown(x2, i - j), L, R);
    res = (res + 1LL * f[K][i] * sum.a) % mod;
  }
  return res;
}
int main() {
  long long L, R;
  std::cin >> K >> L >> R;
  init();
  std::cout << 1LL * prod * solve(L, R) % mod << '\n';
  return 0;
}