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 MAXSIZE = 30000020;
const int mod = 1000000007;
const int inv2 = (mod + 1) / 2;
int inv5;
int bufpos;
char buf[MAXSIZE];
void init() {
  buf[fread(buf, 1, MAXSIZE, stdin)] = '\0';
  bufpos = 0;
}
long long readint() {
  long long val = 0;
  for (; !isdigit(buf[bufpos]); bufpos++)
    ;
  for (; isdigit(buf[bufpos]); bufpos++) val = val * 10 + buf[bufpos] - '0';
  return val;
}
char readchar() {
  for (; isspace(buf[bufpos]); bufpos++)
    ;
  return buf[bufpos++];
}
int readstr(char* s) {
  int cur = 0;
  for (; isspace(buf[bufpos]); bufpos++)
    ;
  for (; !isspace(buf[bufpos]); bufpos++) s[cur++] = buf[bufpos];
  s[cur] = '\0';
  return cur;
}
long long power(long long x, long long y) {
  long long res = 1;
  x %= mod;
  while (y) {
    if (y & 1) res = res * x % mod;
    x = x * x % mod;
    y >>= 1;
  }
  return res;
}
struct atom {
  long long a, b;
  atom(long long a = 0, long long b = 0) : a(a % mod), b(b % mod) {}
  atom operator+(const atom& rhs) const { return atom(a + rhs.a, b + rhs.b); }
  atom operator-(const atom& rhs) const { return atom(a - rhs.a, b - rhs.b); }
  atom operator*(const atom& rhs) const {
    return atom(a * rhs.a + b * rhs.b * 5, a * rhs.b + b * rhs.a);
  }
  atom operator/(const atom& rhs) const {
    long long inv = power((rhs.a * rhs.a - 5 * rhs.b * rhs.b) % mod, mod - 2);
    atom t(rhs.a, -rhs.b);
    return (*this) * t * inv;
  }
};
atom p1(inv2, inv2), p2(inv2, -inv2);
long long c[202][202], s[202][202];
atom power(atom x, long long y) {
  atom res(1, 0);
  while (y) {
    if (y & 1) res = res * x;
    x = x * x;
    y >>= 1;
  }
  return res;
}
atom get(atom x, long long y) {
  atom w = x - 1;
  if (!w.a && !w.b) {
    return y;
  }
  return power(x, y + 1) / w;
  atom now(1, 0), ans;
}
long long query(long long l, long long k) {
  atom ans;
  for (int i = 0; i <= k; i++) {
    long long coff = c[k][i];
    if (i % 2) coff = -coff;
    atom qwq = power(p1, k - i) * power(p2, i);
    qwq = get(qwq, l);
    ans = ans + qwq * coff;
  }
  ans = ans * power(atom(0, inv5), k);
  return ans.a;
}
long long query(long long l, long long r, long long k) {
  long long ans = (query(r, k) - query(l - 1, k)) % mod;
  return ans;
}
int main() {
  init();
  inv5 = power(5, mod - 2);
  int k = readint();
  c[0][0] = 1;
  s[0][0] = 1;
  for (int i = 1; i <= k; i++) {
    c[i][0] = 1;
    for (int j = 1; j <= i; j++) {
      s[i][j] = ((i - 1) * s[i - 1][j] + s[i - 1][j - 1]) % mod;
      c[i][j] = (c[i - 1][j] + c[i - 1][j - 1]) % mod;
    }
  }
  long long l = readint() + 2, r = readint() + 2;
  long long ans = 0;
  for (int i = 1; i <= k; i++) {
    long long sgn = (k - i) % 2 ? -1 : 1;
    ans = (ans + sgn * s[k][i] * query(l, r, i)) % mod;
  }
  for (int i = 1; i <= k; i++) ans = ans * power(i, mod - 2) % mod;
  printf("%lld", (ans % mod + mod) % mod);
}