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;
long long int powmod(long long int a, int b, int n) {
  long long int rm = 1;
  while (b) {
    if (b % 2) {
      rm = (rm * a) % n;
    }
    a = (a * a) % n;
    b /= 2;
  }
  return rm;
}
int a[4000000];
int p;
int t = 0, dp[4000000], prime[200] = {0}, maxp[4000000], npr = 0, pr[400],
    P[200];
map<int, int> hash;
bool f[4000000] = {false};
void brute(int p) {
  int f1 = t;
  long long int m;
  for (int i = 1; i <= t; ++i) {
    m = p;
    while (a[i] <= 1e9 / m) {
      a[++f1] = m * a[i];
      m *= p;
    }
  }
  t = f1;
  for (int i = p + 1; i <= 100; ++i) {
    if (prime[i] == 1) {
      brute(i);
      return;
    }
  }
}
void go() {
  int u;
  f[1] = true;
  dp[1] = 0;
  for (int i = 2; i <= p; ++i) {
    int k = 1;
    for (int j = 1; j <= t; ++j) {
      while (k <= t && a[k] < a[j] * i) ++k;
      if (k > t) break;
      if (a[k] == a[j] * i) {
        dp[k] = min(dp[k], dp[j] + 1);
        if (dp[k] + i <= p) f[k] = true;
      }
    }
  }
}
int main() {
  int l, r;
  cin >> l >> r >> p;
  a[++t] = 1;
  for (int i = 2; i <= 100; ++i) {
    prime[i] = 1;
    pr[++npr] = i;
    int sq = sqrt(i);
    for (int j = 2; j <= sq; ++j) {
      if (i % j == 0) {
        npr--;
        prime[i] = 0;
        break;
      }
    }
  }
  brute(2);
  fill(dp + 1, dp + t + 1, 1e9);
  sort(a + 1, a + t + 1);
  go();
  int ans = 0;
  for (int i = 1; i <= t; ++i)
    if (f[i])
      if (a[i] > r)
        break;
      else if (a[i] >= l)
        ans++;
  printf("%d\n", ans);
  return 0;
}