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>
int l, r, i, j, k, z, n, ans;
short p;
std::vector<short> prm;
std::vector<int> to;
int dp[3000111];
bool done[3000111];
void dfs(long long now, char cnt) {
  to.push_back(now);
  for (; cnt < prm.size() && now * prm[cnt] <= r; ++cnt)
    dfs(now * prm[cnt], cnt);
}
int main() {
  prm.reserve(29);
  to.reserve(3000111);
  scanf("%d %d %hd", &l, &r, &p);
  for (i = 2; i < p; ++i) {
    for (j = 2; j * j <= i; ++j)
      if (i % j == 0) break;
    if (j * j > i) prm.push_back(i);
  }
  dfs(1, 0);
  n = to.size();
  std::sort(to.begin(), to.end());
  memset(dp, 0x3f, sizeof(dp));
  dp[0] = 0;
  for (i = 2; i < p; ++i)
    for (j = 0, k = 1; j < to.size(); ++j) {
      for (z = to[j] * i; k < to.size() && to[k] < z; ++k)
        ;
      if (to[k] == z && dp[k] > dp[j] + 1) {
        dp[k] = dp[j] + 1;
        if (i + dp[k] <= p) done[k] = true;
      }
    }
  r = std::min(r, to.back());
  for (i = 0; i < to.size() && to[i] < l; ++i)
    ;
  for (; i < to.size() && to[i] <= r; ++i)
    if (done[i]) ++ans;
  printf("%d\n", ans);
  return 0;
}