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>
const int MAXK = 2E2 + 10;
const int MOD = 1E9 + 7;
struct Num {
  int a, b;
  Num(int ta = 0, int tb = 0) : a(ta), b(tb) {}
};
Num operator+(const Num &l, const Num &r) {
  return Num((l.a + r.a) % MOD, (l.b + r.b) % MOD);
}
Num operator*(const Num &l, const Num &r) {
  return Num(((long long)l.a * r.a + 5ll * l.b * r.b) % MOD,
             ((long long)l.a * r.b + (long long)l.b * r.a) % MOD);
}
long long modExp(long long e, long long n, long long m = MOD) {
  long long ret = 1;
  for (; n; n >>= 1, e = e * e % m)
    if (n & 1) ret = ret * e % m;
  return ret;
}
Num modExp(Num e, long long n) {
  Num ret(1);
  for (; n; n >>= 1, e = e * e)
    if (n & 1) ret = ret * e;
  return ret;
}
Num modSum(Num e, long long n) {
  Num ret(0), s(e);
  for (; n; n >>= 1, s = s * e + s, e = e * e)
    if (n & 1) ret = ret * e + s;
  return ret;
}
long long c[MAXK][MAXK];
void init() {
  for (int i = 0; i < MAXK; ++i) {
    c[i][0] = c[i][i] = 1;
    for (int j = 1; j < i; ++j) c[i][j] = (c[i - 1][j - 1] + c[i - 1][j]) % MOD;
  }
}
int solve(long long n, int K) {
  n += 2;
  static long long e[MAXK];
  e[0] = 1;
  for (int i = 2; i <= K; ++i) e[0] = e[0] * i % MOD;
  e[0] = modExp(e[0], MOD - 2);
  for (int i = 0; i < K; ++i) {
    e[i + 1] = e[i];
    for (int j = i; j > 0; --j) e[j] = (e[j - 1] - e[j] * i % MOD + MOD) % MOD;
    e[0] = e[0] * i % MOD;
  }
  Num eff(1, 0), ret;
  long long inv2 = modExp(2, MOD - 2), inv5 = modExp(5, MOD - 2);
  for (int i = 1; i <= K; ++i) {
    Num toti;
    for (int j = 0; j <= i; ++j)
      toti = toti + modSum(modExp(Num(inv2, inv2), j) *
                               modExp(Num(inv2, MOD - inv2), i - j),
                           n) *
                        (i - j & 1 ? MOD - c[i][j] : c[i][j]);
    eff = eff * Num(0, inv5);
    ret = ret + toti * eff * e[i];
  }
  return ret.a;
}
int main() {
  init();
  int K;
  long long l, r;
  scanf("%d%I64d%I64d", &K, &l, &r);
  printf("%d\n", (int)((solve(r, K) - solve(l - 1, K) + (long long)MOD) % MOD));
  return 0;
}