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 l, r;
set<long long> st;
map<int, int> MP;
map<int, int>::iterator it;
short dp[3000003];
int c1;
int P;
vector<int> V;
bool Prime[105];
void sieve() {
  for (int i = 3; i < 105; i += 2) Prime[i] = 1;
  Prime[2] = 1;
  for (int i = 3; i < 105; i += 2) {
    if (Prime[i]) {
      for (int j = 2 * i; j < 105; j += i) Prime[j] = 0;
    }
  }
}
void re(int a, int b) {
  if (a > r) return;
  if (b > P) return;
  if (Prime[b] == 0) {
    re(a, b + 1);
    return;
  }
  re(a, b + 1);
  if (a > r / b) return;
  for (int i = b;; i *= b) {
    if (a > r / i) break;
    V.push_back(a * i);
    re(a * i, b + 1);
  }
}
bool mark[3000000];
int main() {
  sieve();
  cin >> l >> r >> P;
  re(1, 0);
  V.push_back(1);
  sort(V.begin(), V.end());
  for (int j = 0; j < V.size(); j++) {
    dp[j] = 200;
  }
  dp[0] = 0;
  int ans = 0;
  int sz = V.size();
  for (long long i = 2; i <= P; i++) {
    for (int j = 0, k = 0; j < sz; j++) {
      if (V[j] > r / i) break;
      while (k < sz && V[j] * i > V[k]) k++;
      if (V[k] == V[j] * i) {
        if (dp[k] > dp[j] + 1) {
          dp[k] = dp[j] + 1;
          if (mark[k] == 0 && dp[k] + i <= P) {
            mark[k] = 1;
            ans += (V[k] >= l && V[k] <= r);
          }
        }
      }
    }
  }
  cout << ans << endl;
  return 0;
}