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;
inline int add(const int& a, const int& b) {
  return a + b >= mod ? a + b - mod : a + b;
}
inline int dec(const int& a, const int& b) {
  return a >= b ? a - b : a - b + mod;
}
inline int mul(const int& a, const int& b) { return (long long)a * b % mod; }
inline void Add(int& a, const int& b) {
  a = a + b >= mod ? a + b - mod : a + b;
}
inline void Dec(int& a, const int& b) { a = a >= b ? a - b : a - b + mod; }
inline void Mul(int& a, const int& b) { a = (long long)a * b % mod; }
inline int ksm(int a, int p) {
  int ret = 1;
  for (; p; p >>= 1, a = mul(a, a))
    if (p & 1) Mul(ret, a);
  return ret;
}
const int N = 205;
struct cp {
  int x, y;
  cp(int x = 0, int y = 0) : x(x), y(y) {}
  friend inline cp operator+(const cp& a, const cp& b) {
    return cp(add(a.x, b.x), add(a.y, b.y));
  }
  friend inline cp operator-(const cp& a, const cp& b) {
    return cp(dec(a.x, b.x), dec(a.y, b.y));
  }
  friend inline cp operator*(const cp& a, const cp& b) {
    return cp(add(mul(a.x, b.x), mul(5, mul(a.y, b.y))),
              add(mul(a.x, b.y), mul(a.y, b.x)));
  }
  friend inline cp operator*(const cp& a, const int& b) {
    return cp(mul(a.x, b), mul(a.y, b));
  }
  friend inline cp operator/(const cp& a, const cp& b) {
    int t = ksm(dec(mul(b.x, b.x), mul(5, mul(b.y, b.y))), mod - 2);
    return cp(mul(t, dec(mul(a.x, b.x), mul(5, mul(a.y, b.y)))),
              mul(t, dec(mul(a.y, b.x), mul(a.x, b.y))));
  }
  friend inline cp operator^(cp a, int p) {
    cp ret = cp(1, 0);
    for (; p; p >>= 1, a = a * a)
      if (p & 1) ret = ret * a;
    return ret;
  }
  friend inline cp operator^(cp a, long long p) {
    cp ret = cp(1, 0);
    for (; p; p >>= 1, a = a * a)
      if (p & 1) ret = ret * a;
    return ret;
  }
} A, B, X, Y, ans;
int C[N][N], s[N][N], k;
long long l, r;
inline void init(const int& up) {
  s[0][0] = 1;
  for (register int i = 0; i <= up; ++i) {
    C[i][0] = C[i][i] = 1;
    for (register int j = 1; j < i; ++j)
      C[i][j] = add(C[i - 1][j - 1], C[i - 1][j]);
  }
  for (register int i = 1; i <= up; ++i)
    for (register int j = 1; j <= i; ++j)
      s[i][j] = add(s[i - 1][j - 1], mul(s[i - 1][j], i - 1));
  A = cp(0, ksm(5, mod - 2)), B = cp(0, mod - ksm(5, mod - 2));
  X = cp((mod + 1) >> 1, (mod + 1) >> 1),
  Y = cp((mod + 1) >> 1, mod - ((mod + 1) >> 1));
}
inline cp S(cp x, int k) {
  if (x.x == 1 && x.y == 0) return x * ((r - l + 1) % mod);
  return (x ^ l) * (((x ^ (r - l + 1)) - cp(1, 0)) / (x - cp(1, 0)));
}
inline cp calc(int k) {
  cp ret;
  for (register int i = 0; i <= k; ++i)
    ret = ret +
          (S((X ^ i) * (Y ^ (k - i)), i) * ((A ^ i) * (B ^ (k - i))) * C[k][i]);
  return ret;
}
int main() {
  cin >> k >> l >> r, l += 2, r += 2;
  init(k);
  cp t;
  register int mt = 1;
  for (register int i = 0; i <= k; ++i)
    t = calc(i) * s[k][i], (k + i)& 1 ? ans = ans - t : ans = ans + t,
    Mul(mt, i ? i : 1);
  cout << mul(ans.x, ksm(mt, mod - 2));
  return 0;
}