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 long long w = 5;
const long long oo = 1e9 + 7;
struct PP {
  long long x, y;
  PP() {}
  PP(long long x, long long y) : x(x % oo), y(y % oo) {}
};
PP operator+(PP a, PP b) { return PP((a.x + b.x) % oo, (a.y + b.y) % oo); }
PP operator-(PP a, PP b) {
  return PP((a.x - b.x + oo) % oo, (a.y - b.y + oo) % oo);
}
PP operator*(PP a, PP b) {
  return PP((a.x * b.x % oo + a.y * b.y % oo * w % oo) % oo,
            (a.x * b.y % oo + a.y * b.x % oo) % oo);
}
void write(PP a) { cout << a.x << ' ' << a.y << endl; }
PP exp(PP a, long long b, long long p) {
  PP tmp = PP(1, 0);
  while (b) {
    if (b & 1) tmp = tmp * a;
    a = a * a;
    b = b >> 1;
  }
  return tmp;
}
PP inv(PP a) {
  PP r = exp(PP((a.x * a.x % oo - a.y * a.y % oo * w % oo + oo) % oo, 0),
             oo - 2, oo);
  return r * PP(a.x, oo - a.y);
}
PP frac[220], invf[220];
long long s[220][220];
int fibosum(long long n, int k) {
  PP inv_2 = inv(PP(2, 0));
  PP a = PP(1, 1) * inv_2;
  PP b = PP(1, oo - 1) * inv_2;
  PP ans = PP(0, 0);
  for (int j = 0; j <= k; j++) {
    PP t = exp(a, j, oo) * exp(b, k - j, oo);
    PP coe = frac[k] * invf[j] * invf[k - j];
    if ((k - j) % 2 == 1) coe = coe * PP(oo - 1, 0);
    if (t.x == 1 && t.y == 0)
      ans = ans + coe * PP(n, 0);
    else {
      PP a1 = exp(t, n, oo) - PP(1, 0);
      PP a2 = inv(t - PP(1, 0));
      ans = ans + coe * a1 * a2 * t;
    }
  }
  ans = ans * inv(exp(PP(0, 1), k, oo));
  return ans.x;
}
void init() {
  frac[0] = PP(1, 0);
  invf[0] = PP(1, 0);
  for (int i = 1; i <= 202; i++) {
    frac[i] = frac[i - 1] * PP(i, 0);
    invf[i] = inv(frac[i]);
  }
  for (int i = 1; i <= 202; i++) {
    s[i][0] = 0;
    for (int j = 1; j < i; j++)
      s[i][j] = ((oo - i + 1) % oo * s[i - 1][j] % oo + s[i - 1][j - 1]) % oo;
    s[i][i] = 1;
  }
}
long long l, r;
int k;
int main() {
  init();
  scanf("%d%I64d%I64d", &k, &l, &r);
  long long ans = 0;
  for (int j = 0; j <= k; j++) {
    long long tmp = (fibosum(r + 2, j) + oo - fibosum(l + 1, j)) % oo;
    (ans += s[k][j] * tmp % oo) %= oo;
  }
  ans = ans * invf[k].x % oo;
  printf("%d\n", ans);
  return 0;
}