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 INF = 0x3fffffff;
const int SINF = 0x7fffffff;
const long long LINF = 0x3fffffffffffffff;
const long long SLINF = 0x7fffffffffffffff;
const int MAXN = 3000007;
const int MAXP = 107;
int l, r, p;
int a[MAXN], ka;
int dp[MAXN], mn[MAXN];
bool isp[MAXP];
void init();
void input();
void work();
int main() {
  init();
  input();
  work();
}
void init() { ios::sync_with_stdio(false); }
void input() { scanf("%d%d%d", &l, &r, &p); }
void work() {
  memset(isp, true, sizeof(isp));
  long long v;
  a[++ka] = 1;
  for (int i = 2; i <= p; ++i) {
    if (isp[i]) {
      for (int j = i * i; j <= p; j += i) isp[j] = false;
      for (int j = 1; j <= ka; ++j)
        if ((v = static_cast<long long>(a[j]) * i) <= r) a[++ka] = v;
    }
  }
  sort(a + 1, a + 1 + ka);
  memset(dp, 0x3f3f3f3f, sizeof(dp));
  memset(mn, 0x3f3f3f3f, sizeof(mn));
  dp[1] = 0, mn[1] = 0;
  int vi;
  for (int j = 2; j <= p; ++j) {
    vi = 1;
    for (int i = 1; i <= ka; ++i) {
      while (vi <= ka && a[vi] < a[i] * j) ++vi;
      if (vi > ka) break;
      dp[vi] = (((dp[vi]) < (dp[i] + 1)) ? (dp[vi]) : (dp[i] + 1));
      mn[vi] = (((mn[vi]) < (dp[vi] + j)) ? (mn[vi]) : (dp[vi] + j));
    }
  }
  int ans = 0;
  for (int i = 1; i <= ka; ++i)
    if (a[i] >= l && mn[i] <= p) ++ans;
  cout << ans << endl;
}