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 _ = 262, p = 1e9 + 7;
int add(int a, int b) { return (a + b < p) ? (a + b) : (a + b - p); }
int Pow_(int a, int b) {
  int ans = 1;
  while (b) {
    if (b & 1) ans = 1ll * ans * a % p;
    a = 1ll * a * a % p;
    b >>= 1;
  }
  return ans;
}
struct sq5 {
  int a, b;
  sq5() {}
  sq5(int a_, int b_) {
    a = a_;
    b = b_;
  }
  friend sq5 operator*(sq5 x, sq5 y) {
    return sq5((1ll * x.a * y.a % p + 1ll * x.b * y.b % p * 5) % p,
               (1ll * x.a * y.b + 1ll * x.b * y.a) % p);
  }
  friend sq5 operator+(sq5 x, sq5 y) {
    return sq5(add(x.a, y.a), add(x.b, y.b));
  }
};
sq5 inv_(sq5 a) {
  int inv =
      Pow_(add(1ll * a.a * a.a % p, p - 1ll * a.b * a.b % p * 5 % p), p - 2);
  return sq5(1ll * a.a * inv % p, a.b ? (p - 1ll * a.b * inv % p) : 0);
}
sq5 neg_(sq5 a) { return sq5(a.a ? (p - a.a) : 0, a.b ? (p - a.b) : 0); }
sq5 Pow(sq5 a, long long b) {
  sq5 ans = sq5(1, 0);
  while (b) {
    if (b & 1) ans = ans * a;
    a = a * a;
    b >>= 1;
  }
  return ans;
}
int fac[_], ifc[_];
sq5 phi = sq5(Pow_(2, p - 2), Pow_(2, p - 2)),
    phi_ = sq5(Pow_(2, p - 2), Pow_(p - 2, p - 2));
int C(int a, int b) { return 1ll * ifc[b] * ifc[a - b] % p * fac[a] % p; }
int fun(long long l, int k) {
  sq5 ans = sq5(0, 0);
  for (int i = 0; i <= k; i++) {
    sq5 dt = Pow(phi, i) * Pow(phi_, k - i);
    if (dt.a == 1 && dt.b == 0)
      dt = sq5(l % p, 0);
    else
      dt = (Pow(dt, l) + sq5(p - 1, 0)) * inv_(dt + sq5(p - 1, 0));
    ans = ans + dt * sq5(((k - i) & 1) ? (p - C(k, i)) : C(k, i), 0);
  }
  return (ans * Pow(inv_(sq5(0, 1)), k)).a;
}
int f[_];
int main() {
  fac[0] = 1;
  for (int i = 1; i < _; i++) fac[i] = 1ll * fac[i - 1] * i % p;
  for (int i = 0; i < _; i++) ifc[i] = Pow_(fac[i], p - 2);
  long long k, l, r;
  cin >> k >> l >> r;
  f[1] = 1;
  for (int i = 1; i < k; i++) {
    for (int j = _ - 1; j > 0; j--)
      f[j] = (f[j - 1] + 1ll * (p - i) * f[j]) % p;
  }
  int ans = 0;
  for (int i = 1; i < _; i++) {
    ans = add(ans, 1ll * f[i] * (fun(r + 3, i)) % p);
    ans = add(ans, 1ll * f[i] * (p - fun(l + 2, i)) % p);
  }
  cout << 1ll * ifc[k] * ans % p;
  return 0;
}