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 LL = long long;
template <int BASE = 5>
class NS {
  static const LL MO = 1e9 + 7;
  LL a, b;

 public:
  static void Normalize(LL& x) {
    x %= MO;
    if (x < 0) x += MO;
  }
  inline LL first() const { return a; }
  inline LL second() const { return b; }
  NS(LL a = 0, LL b = 0) : a(a), b(b) {
    Normalize(this->a);
    Normalize(this->b);
  }
  static LL Powd(LL a, LL b) {
    assert(b >= 0);
    LL answer = 1;
    for (; b > 0; b >>= 1) {
      if (b & 1) answer = answer * a % MO;
      a *= a;
      a %= MO;
    }
    return answer;
  }
  friend std::ostream& operator<<(std::ostream& os, const NS& number) {
    os << " { " << number.a << " + " << number.b << " * [" << BASE << " } ";
    return os;
  }
  NS Pair() const { return NS(a, -b); }
  NS Inverse() const {
    if (!a && !b) {
      std::cerr << "0 has no INVERSE!!!" << std::endl;
      return NS();
    } else if (b == 0) {
      return NS(Powd(a, MO - 2), 0);
    } else {
      LL down = a * a % MO + MO - BASE * b % MO * b % MO;
      return (*this).Pair() * Powd(down % MO, MO - 2);
    }
  }
  NS operator-() const { return NS(-a, -b); }
  NS operator+(const NS& rhs) const { return NS(a + rhs.a, b + rhs.b); }
  NS operator-(const NS& rhs) const { return NS(a - rhs.a, b - rhs.b); }
  NS operator*(const NS& rhs) const {
    return NS(a * rhs.a % MO + b * rhs.b % MO * BASE % MO,
              a * rhs.b % MO + b * rhs.a % MO);
  }
  NS operator*(LL scale) const { return *this * NS(scale, 0); }
  NS operator/(const NS& rhs) const { return *this * rhs.Inverse(); }
};
using NS5 = NS<5>;
constexpr int N = 222;
NS5 Comb[N][N], S[N][N];
void Init() {
  Comb[0][0] = S[0][0] = 1;
  for (int i = 1; i < N; i++) {
    Comb[i][0] = Comb[i][i] = 1;
    S[i][0] = 0, S[i][i] = S[i - 1][i - 1] * NS5(i).Inverse();
    for (int j = 1; j < i; j++) {
      Comb[i][j] = Comb[i - 1][j] + Comb[i - 1][j - 1];
      NS5 A = NS5(i).Inverse(), B = A - 1;
      S[i][j] = S[i - 1][j] * B + S[i - 1][j - 1] * A;
    }
  }
}
NS5 Powd(NS5 a, LL b) {
  assert(b >= 0);
  NS5 answer{1};
  for (; b > 0; b >>= 1) {
    if (b & 1) answer = answer * a;
    a = a * a;
  }
  return answer;
}
NS5 Calc(LL x, NS5 start, NS5 magic) {
  NS5 result = NS5(1) - Powd(magic, x);
  result = start * result;
  result = result * (NS5(1) - magic).Inverse();
  return result;
}
NS5 SumK(LL x, int b) {
  NS5 answer;
  NS5 magic = NS5(0, 1).Inverse();
  NS5 P = NS5(1, 1) * NS5(2).Inverse(), Q = NS5(1, -1) * NS5(2).Inverse();
  for (int i = 0; i <= b; i++) {
    NS5 result = Powd(NS5(-1), i) * Comb[b][i];
    NS5 start = Powd(P, (b - i)) * Powd(Q, i);
    if (start.first() == 1 && start.second() == 0) {
      answer = answer + result * start * x;
      continue;
    }
    answer = answer + result * Calc(x, start, start);
  }
  return answer * Powd(magic, b);
}
LL Solve(LL x, int k) {
  NS5 answer;
  for (int i = 0; i <= k; i++) {
    answer = answer + S[k][i] * SumK(x, i);
  }
  return answer.first();
}
int main() {
  int k;
  LL l, r;
  Init();
  std::cin >> k >> l >> r;
  LL answer = Solve(r + 2, k) - Solve(l + 1, k);
  NS5::Normalize(answer);
  std::cout << answer << std::endl;
  return 0;
}