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, inv2 = (mod + 1) / 2, inv5 = (mod + mod + 1) / 5;
int k, ik, ans = 0;
long long l, r;
int C[210][210], S[210][210];
inline int add(const int &x, const int &y) {
  return x + y < mod ? x + y : x + y - mod;
}
inline int sub(const int &x, const int &y) {
  return x - y < 0 ? x - y + mod : x - y;
}
inline int mul(const int &x, const int &y) {
  return (int)((long long)x * y % mod);
}
int ksm(int x, int y = mod - 2) {
  int ss = 1;
  for (; y; y >>= 1, x = mul(x, x))
    if (y & 1) ss = mul(ss, x);
  return ss;
}
struct Pair {
  int x, y;
  Pair(int X = 0, int Y = 0) : x(X), y(Y) {}
  inline bool operator==(const Pair &yy) const {
    return x == yy.x && y == yy.y;
  }
  inline Pair operator+(const Pair &yy) const {
    return Pair(add(x, yy.x), add(y, yy.y));
  }
  inline Pair operator-(const Pair &yy) const {
    return Pair(sub(x, yy.x), sub(y, yy.y));
  }
  inline Pair operator*(const Pair &yy) const {
    return Pair(add(mul(x, yy.x), mul(5, mul(y, yy.y))),
                add(mul(x, yy.y), mul(y, yy.x)));
  }
  inline Pair Inv() const {
    Pair res = Pair(x, sub(0, y));
    int mu = ksm(sub(mul(x, x), mul(5, mul(y, y))));
    return Pair(mul(res.x, mu), mul(res.y, mu));
  }
  inline Pair operator/(const Pair &yy) const { return Pair(x, y) * yy.Inv(); }
};
Pair sa = Pair(0, inv5), sb = Pair(0, mod - inv5), sx = Pair(inv2, inv2),
     sy = Pair(inv2, mod - inv2);
Pair ksm(Pair x, long long y) {
  Pair ss = Pair(1, 0);
  for (; y; y /= 2, x = x * x)
    if (y % 2) ss = ss * x;
  return ss;
}
Pair calc(Pair x, long long l, long long r) {
  if (x == Pair(1, 0)) return Pair((r - l + 1) % mod, 0);
  return (ksm(x, r + 1) - ksm(x, l)) / Pair(x.x - 1, x.y);
}
int main() {
  scanf("%d%I64d%I64d", &k, &l, &r);
  for (int i = 0; i <= k; i++) {
    C[i][0] = 1;
    for (int j = 1; j <= i; j++) C[i][j] = add(C[i - 1][j], C[i - 1][j - 1]);
  }
  S[1][1] = 1;
  for (int i = 2; i <= k; i++)
    for (int j = 1; j <= i; j++)
      S[i][j] = add(mul(i - 1, S[i - 1][j]), S[i - 1][j - 1]);
  ik = 1;
  for (int i = 2; i <= k; i++) ik = mul(ik, i);
  ik = ksm(ik);
  for (int i = 0, sum; i <= k; i++) {
    sum = 0;
    for (int j = 0; j <= i; j++) {
      Pair w1 = ksm(sa, j) * ksm(sb, i - j), w2 = ksm(sx, j) * ksm(sy, i - j);
      sum = add(sum, mul(C[i][j], (w1 * calc(w2, l + 2, r + 2)).x));
    }
    sum = mul(sum, S[k][i]);
    if ((k - i) & 1) sum = sub(0, sum);
    ans = add(ans, sum);
  }
  printf("%d\n", mul(ans, ik));
  return 0;
}