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>
using namespace std;
const int MAX_SIZE = 100;
const int INF = 0x3f3f3f3f;
int p[MAX_SIZE + 10], pn;
bool isPrime[MAX_SIZE + 10];
int sn, val[3000000];
int l, r, lim;
int f[3000000];
bool ok[3000000];
void work(int cur, int prod) {
  while ((long long)prod * p[cur] <= r) {
    prod *= p[cur];
    val[sn++] = prod;
    for (int j = cur - 1; j >= 0; j--) work(j, prod);
  }
}
inline void update(int& a, int b) {
  if (b < a) a = b;
}
int main() {
  memset(isPrime, 1, sizeof(isPrime));
  for (int i = 2; i <= MAX_SIZE; i++) {
    if (isPrime[i]) p[pn++] = i;
    for (int j = 0; j < pn && p[j] * i <= MAX_SIZE; j++) {
      isPrime[p[j] * i] = false;
      if (i % p[j] == 0) break;
    }
  }
  scanf("%d%d%d", &l, &r, &lim);
  val[sn++] = 1;
  for (int i = pn - 1; i >= 0; i--) work(i, 1);
  sort(val, val + sn);
  memset(f, INF, sizeof(f));
  f[0] = 1;
  int ans = 0;
  for (int i = 0; i < sn && val[i] < l; i++) ok[i] = true;
  for (register int i = 1; i <= lim; i++) {
    int pos = 0;
    for (register int j = 0; j < sn; j++) {
      if (f[j] <= lim) {
        register long long t = (long long)val[j] * i;
        while (pos < sn && val[pos] != t) ++pos;
        if (!ok[j]) {
          ok[j] = true;
          ++ans;
        }
        ++f[j];
        if (pos < sn) update(f[pos], f[j]);
      }
    }
  }
  printf("%d\n", ans);
  return 0;
}