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;
int modulo(1e9 + 7);
int pw(int x, long long n) {
  int res(1);
  while (n) {
    if (n & 1) {
      res = (long long)res * x % modulo;
    }
    n /= 2;
    x = (long long)x * x % modulo;
  }
  return res;
}
struct Num {
  int n, sq5;
  void print() const { printf("%d + %dsq5\n", n, sq5); }
  Num(int n, int sq5) : n(n), sq5(sq5) {}
  Num() {}
  Num operator+(const Num& b) const {
    return Num((n + b.n) % modulo, (sq5 + b.sq5) % modulo);
  }
  Num operator-(const Num& b) const {
    return Num((n - b.n + modulo) % modulo, (sq5 - b.sq5 + modulo) % modulo);
  }
  Num operator*(const Num& b) const {
    return Num(((long long)n * b.n + 5ll * sq5 * b.sq5) % modulo,
               ((long long)n * b.sq5 + (long long)sq5 * b.n) % modulo);
  }
  bool operator==(const Num& b) const { return n == b.n && sq5 == b.sq5; }
};
Num pw(Num x, long long n) {
  Num res(1, 0);
  while (n) {
    if (n & 1) {
      res = res * x;
    }
    n /= 2;
    x = x * x;
  }
  return res;
}
const int N(222);
int coe[N], c[N][N];
Num a, b, A, B;
Num inv(const Num& x) {
  int a(x.n), b(x.sq5);
  int tmp(((long long)a * a - 5ll * b * b) % modulo);
  tmp = (tmp + modulo) % modulo;
  tmp = pw(tmp, modulo - 2);
  return Num((long long)a * tmp % modulo,
             (long long)(modulo - b) * tmp % modulo);
}
int calc(int k, long long r) {
  Num res(0, 0);
  for (int j(0); j <= k; j++) {
    Num tmp(c[k][j], 0);
    tmp = tmp * pw(a, j) * pw(b, k - j);
    Num q(pw(A, j) * pw(B, k - j));
    tmp = tmp * (q == Num(1, 0)
                     ? Num((r + 1) % modulo, 0)
                     : (Num(1, 0) - pw(q, r + 1)) * inv(Num(1, 0) - q));
    res = res + tmp;
  }
  return res.n;
}
int inv2(pw(2, modulo - 2)), inv5(pw(5, modulo - 5));
int main() {
  Num sq5(0, 1);
  A = (Num(1, 0) + sq5) * Num(inv2, 0);
  B = (Num(1, 0) - sq5) * Num(inv2, 0);
  a = (B - Num(2, 0)) * inv(B - A);
  b = (Num(2, 0) - A) * inv(B - A);
  for (int i(0); i <= 200; i++) {
    for (int j(0); j <= i; j++) {
      c[i][j] =
          (i == 0 || j == 0) ? 1 : (c[i - 1][j - 1] + c[i - 1][j]) % modulo;
    }
  }
  int k;
  long long l, r;
  cin >> k >> l >> r;
  coe[0] = 1;
  for (int i(1); i <= 200; i++) {
    coe[i] = 0;
  }
  for (int i(0); i < k; i++) {
    for (int j(i + 1); j >= 0; j--) {
      coe[j] =
          ((long long)coe[j] * (modulo - i) + (j ? coe[j - 1] : 0)) % modulo;
    }
  }
  int ans(0);
  for (int i(0); i <= k; i++) {
    ans = (ans + (calc(i, r) - calc(i, l - 1) + modulo) * (long long)coe[i]) %
          modulo;
  }
  int tmp(1);
  for (int i(1); i <= k; i++) {
    tmp = (long long)tmp * i % modulo;
  }
  ans = ((long long)ans * pw(tmp, modulo - 2)) % modulo;
  cout << ans << endl;
}