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 MAX = 3100000;
vector<int> prost;
int anses[MAX], anses_size = 0;
unsigned char vs[MAX], last[MAX];
char h[MAX];
int calc(int r, int a = 1, int b = 0, int lp = 0) {
  if (lp == prost.size()) return 0;
  if (1LL * a * prost[lp] > r) return 0;
  b = prost[lp];
  int ans = calc(r, a, b, lp + 1);
  for (int i = 1;; ++i) {
    if (1LL * a * prost[lp] > r) break;
    a *= prost[lp];
    anses[anses_size++] = a;
    ans += calc(r, a, b, lp + 1);
  }
  return ans;
}
bool solve() {
  int l, r, p;
  if (scanf("%d%d%d", &l, &r, &p) == EOF) return false;
  prost.clear();
  anses_size = 0;
  for (int i = 2; i < 100; ++i) {
    bool g = true;
    for (int j = 2; j < i; ++j) g = g && i % j;
    if (g) prost.push_back(i);
  }
  calc(r);
  anses[anses_size++] = 1;
  sort(anses, anses + anses_size);
  memset(vs, 200, sizeof(vs));
  memset(last, 0, sizeof(last));
  memset(h, 0, sizeof(h));
  vs[0] = 0;
  for (unsigned char j = 2; j <= p; ++j) {
    int ind = 0;
    for (int i = 1; i < anses_size; ++i) {
      while (anses[ind] * j < anses[i]) ind++;
      if (anses[ind] * j > anses[i]) continue;
      if (vs[ind] >= p) continue;
      unsigned char cur = 1 + vs[ind] + j - last[ind];
      if (cur > vs[i] + j - last[i] || cur > p) continue;
      vs[i] = cur;
      h[i] = 1;
      last[i] = j;
    }
  }
  int ans = 0;
  for (int i = 0; i < anses_size; ++i)
    if (anses[i] >= l && anses[i] <= r && h[i]) ans++;
  printf("%d\n", ans);
  return true;
}
int main() { solve(); }