Problem: Maxim has got a calculator. The calculator has two integer cells. Initially, the first cell contains number 1, and the second cell contains number 0. In one move you can perform one of the following operations:

  1. Let's assume that at the current time the first cell contains number a, and the second cell contains number b. Write to the second cell number b + 1; 
  2. Let's assume that at the current time the first cell contains number a, and the second cell contains number b. Write to the first cell number a·b. 



Maxim is wondering, how many integers x (l ≤ x ≤ r) are there, such that we can write the number x to the first cell of the calculator, having performed at most p moves.

Input

The first line contains three integers: l, r, p (2 ≤ l ≤ r ≤ 109, 1 ≤ p ≤ 100). 

The numbers in the line are separated by single spaces.

Output

In a single line print a single integer — the answer to the problem.

Examples

Input

2 10 3


Output

1


Input

2 111 100


Output

106


Input

2 111 11


Output

47

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
int p[110] = {
    0,
};
int pr[110] =
    {
        0,
},
    prc = 0;
int ansc = 0;
int m[3000000] = {
    0,
};
int f[3000000] = {
    0,
};
int ch[3000000] = {
    0,
};
int l, r, a;
void play(long long mult, int po) {
  m[ansc++] = (int)mult;
  int i;
  for (i = po; i < prc; i++) {
    if (mult * pr[i] > r) break;
    play(mult * pr[i], i);
  }
}
int main() {
  scanf("%d%d%d", &l, &r, &a);
  int i, j, k;
  for (i = 2; i * i <= a; i++) {
    if (p[i] == 0)
      for (j = 2 * i; j <= a; j += i) p[j] = 1;
  }
  for (i = 2; i <= a && p[i] <= r; i++)
    if (p[i] == 0) pr[prc++] = i;
  for (i = 0; i < prc; i++) play(pr[i], i);
  m[ansc++] = 1;
  std::sort(m, m + ansc);
  for (i = 0; i < ansc; i++) f[i] = 110;
  f[0] = 0;
  for (i = 2; i <= a; i++) {
    int pp = 0;
    for (j = 0; j < ansc; j++) {
      while (pp < ansc && m[pp] != m[j] * i) pp++;
      if (pp == ansc) break;
      if (f[j] + 1 < f[pp]) f[pp] = f[j] + 1;
      if (f[pp] + i <= a) ch[pp] = 1;
    }
  }
  int ans = 0;
  for (i = 0; i < ansc; i++)
    if (m[i] >= l) ans += ch[i];
  printf("%d\n", ans);
  return 0;
}