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 maxn = (int)(3e6 + 123);
const long long inf = (long long)(1e9 + 7);
const int base = (int)(1e9 + 7);
const int mod = (int)(1e9 + 7);
const double eps = (double)(1e-9);
int l, r, ans, a[maxn], N, dL[101], lp[101];
short P, p[29], pn, dp[maxn];
unordered_map<int, int> was;
vector<int> ind[26];
bool u[maxn], used[maxn], us[maxn];
void resheto(int n) {
  for (int i = 3; i * i <= n; i += 2)
    if (!u[i])
      for (int j = i * i; j <= n; j += 2 * i) u[j] = 1;
  p[pn++] = 2;
  for (int i = 3; i <= n; i += 2)
    if (!u[i]) p[pn++] = i;
}
int main() {
  ios_base ::sync_with_stdio(false);
  resheto(100);
  cin >> l >> r >> P;
  a[N++] = 1;
  for (short i = 0; i < pn; ++i) {
    dL[i] = N;
    for (int j = 0; j < N; ++j) {
      if (a[j] > r / p[i]) continue;
      long long x = a[j] * p[i];
      a[N++] = x;
    }
  }
  sort(a, a + N);
  memset(dp, -1, sizeof dp);
  dp[0] = 0;
  for (int i = 0; i < pn; ++i) {
    for (int j = p[i]; j <= 100; j += p[i]) lp[j] = i;
  }
  for (short i = 2; i <= P; ++i) {
    int id = 0;
    for (int j = 0; j < N; ++j) {
      if (a[j] / i * i != a[j]) continue;
      if (dp[j] != -1)
        dp[j] = min(dp[j], short(dp[id] + 1));
      else if (dp[id] != -1) {
        dp[j] = short(dp[id] + 1);
      }
      id++;
      if (dp[j] != -1 && !used[j] && a[j] >= l && a[j] <= r && P - dp[j] >= i) {
        ans++;
        used[j] = 1;
      }
    }
  }
  cout << ans;
  return 0;
}