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;
inline void read(int &x) {
  int v = 0, f = 1;
  char c = getchar();
  while (!isdigit(c) && c != '-') c = getchar();
  if (c == '-')
    f = -1;
  else
    v = (c & 15);
  while (isdigit(c = getchar())) v = (v << 1) + (v << 3) + (c & 15);
  x = v * f;
}
inline void read(long long &x) {
  long long v = 0ll, f = 1ll;
  char c = getchar();
  while (!isdigit(c) && c != '-') c = getchar();
  if (c == '-')
    f = -1;
  else
    v = (c & 15);
  while (isdigit(c = getchar())) v = (v << 1) + (v << 3) + (c & 15);
  x = v * f;
}
inline void readc(char &x) {
  char c;
  while (((c = getchar()) == ' ') || c == '\n')
    ;
  x = c;
}
const int pr[25] = {2,  3,  5,  7,  11, 13, 17, 19, 23, 29, 31, 37, 41,
                    43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97};
int n, m, i, j, k, l, r, p, f[3000005], g[3000005], ans;
vector<int> a;
void dfs(int x, int y) {
  a.push_back(x);
  int i;
  for (i = y; i < 25; i++) {
    if (r / pr[i] < x) return;
    dfs(x * pr[i], i);
  }
}
int main() {
  read(l);
  read(r);
  read(p);
  dfs(1, 0);
  sort((a).begin(), (a).end());
  memset((f), (0x16), (sizeof((f))));
  memset((g), (0x16), (sizeof((g))));
  g[0] = 0;
  f[0] = 0;
  for ((i) = (2); (i) <= (99); (i)++) {
    k = 0;
    for (((j)) = (0); ((j)) <= (((int)(a.size())) - 1); ((j))++) {
      if (a[j] * i > a.back()) break;
      while (a[j] * i > a[k]) k++;
      f[k] = min(f[k], f[j] + 1);
    }
    for (((j)) = (0); ((j)) <= (((int)(a.size())) - 1); ((j))++) {
      g[j] = min(g[j], f[j] + i);
    }
  }
  for (((i)) = (0); ((i)) <= (((int)(a.size())) - 1); ((i))++) {
    ans += (l <= a[i] && a[i] <= r && g[i] <= p);
  }
  cout << ans << endl;
  return 0;
}