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 P(1000000007);
int inc(int a, int b) { return a + b >= P ? a + b - P : a + b; }
long long mpower(long long a, long long b) {
  int ret = 1;
  while (b) {
    if (b & 1) ret = ret * a % P;
    a = a * a % P;
    b >>= 1;
  }
  return ret;
}
struct Num {
  int a, b;
  Num(void) {}
  Num(int a, int b) : a(a), b(b) {}
  Num inv(void) const {
    long long t = ((long long)a * a - 5LL * b % P * b) % P;
    if (t < 0) t += P;
    t = mpower(t, P - 2);
    return Num(a * t % P, (P - b) * t % P);
  }
} phi1(500000004, 500000004), phi2(500000004, 500000003);
Num operator+(const Num &a, const Num &b) {
  return Num(inc(a.a, b.a), inc(a.b, b.b));
}
Num operator-(const Num &a, const Num &b) {
  return Num(inc(a.a, P - b.a), inc(a.b, P - b.b));
}
Num operator*(const Num &a, const Num &b) {
  return Num(((long long)a.a * b.a + 5LL * a.b % P * b.b) % P,
             ((long long)a.a * b.b + (long long)a.b * b.a) % P);
}
Num operator/(const Num &a, const Num &b) { return a * b.inv(); }
Num mpower(Num a, long long b) {
  Num ret(1, 0);
  while (b) {
    if (b & 1) ret = ret * a;
    a = a * a;
    b >>= 1;
  }
  return ret;
}
int K;
long long l, r;
int g[205], t[205], fac[205], ifac[205];
void init() {
  g[0] = 1;
  for (int i = 0; i < K; ++i) {
    t[0] = 0;
    for (int j = 0; j <= i; ++j)
      t[j] = (t[j] - (long long)(t[j + 1] = g[j]) * i) % P;
    memcpy(g, t, (i + 2) << 2);
  }
  for (int i = 0; i <= K; ++i)
    if (g[i] < 0) g[i] += P;
}
int owo(int n) {
  return ((mpower(phi1, n + 2) - mpower(phi2, n + 2)) / Num(0, 1)).a;
}
long long C(int n, int m) {
  return (long long)fac[n] * ifac[m] % P * ifac[n - m] % P;
}
int f(long long n) {
  Num s(0, 0);
  for (int i = 0; i <= K; ++i)
    for (int j = 0; j <= i; ++j) {
      Num t = mpower(phi1, j) * mpower(phi2, i - j);
      if (t.a == 1 && t.b == 0)
        s = s + Num(g[i], 0) * Num(C(i, j), 0) * Num(mpower(P - 1, i - j), 0) *
                    Num(n % P, 0) / mpower(Num(0, 1), i);
      else
        s = s + (t * t * t * (Num(1, 0) - mpower(t, n)) / (Num(1, 0) - t)) /
                    mpower(Num(0, 1), i) * Num(g[i], 0) * Num(C(i, j), 0) *
                    Num(mpower(P - 1, i - j), 0);
    }
  return s.a;
}
int main() {
  fac[0] = 1;
  for (int i = 1; i < 205; ++i) fac[i] = (long long)fac[i - 1] * i % P;
  ifac[204] = mpower(fac[204], P - 2);
  for (int i = 204; i; --i) ifac[i - 1] = (long long)ifac[i] * i % P;
  cin >> K >> l >> r;
  init();
  cout << (long long)(f(r) - f(l - 1) + P) * ifac[K] % P << endl;
  return 0;
}