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 MaxNPoss = 2944730;
template <class T>
inline void tension(T &a, const T &b) {
  if (b < a) a = b;
}
int l, r, p;
int nP = 0;
int prime[25];
inline bool isPrime(const int &num) {
  for (int i = 0; i < nP && prime[i] * prime[i] <= num; i++)
    if (num % prime[i] == 0) return false;
  return true;
}
int nPoss = 0;
int poss[MaxNPoss];
inline void dfs(int num, int v) {
  if (v == nP) {
    poss[nPoss++] = num;
    return;
  }
  dfs(num, v + 1);
  while ((long long)num * prime[v] <= r) {
    num *= prime[v];
    dfs(num, v + 1);
  }
}
int main() {
  cin >> l >> r >> p;
  for (int i = 2; i <= p; i++)
    if (isPrime(i)) prime[nP++] = i;
  dfs(1ll, 0);
  sort(poss, poss + nPoss);
  static bool ok[MaxNPoss];
  static int f[MaxNPoss];
  fill(f, f + nPoss, INT_MAX);
  f[0] = 0, ok[0] = true;
  for (int b = 2; b <= p; b++) {
    for (int i = 0, j = 0; i < nPoss; i++) {
      if (f[i] == INT_MAX) continue;
      if (f[i] + b <= p) ok[i] = true;
      while (j < nPoss && poss[j] < (long long)poss[i] * b) j++;
      if (j == nPoss) continue;
      if (poss[j] == (long long)poss[i] * b) tension(f[j], f[i] + 1);
    }
  }
  int res = 0;
  for (int i = 0; i < nPoss; i++)
    if (l <= poss[i] && poss[i] <= r && ok[i]) res++;
  cout << res << endl;
  return 0;
}