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
#include <bits/stdc++.h>
using namespace std;
int l, r, p, ans, n, tot;
int prime[30];
int pr[35];
int tmp[35];
int f[3000005];
vector<int> cdt;
bool mark[3000005];
void dfs(int a, int b) {
  if (a > r || b > p) return;
  dfs(a, b + 1);
  if (mark[b]) return;
  if (a > r / b) return;
  cdt.push_back(a * b);
  dfs(a * b, b);
}
int main() {
  ios::sync_with_stdio(false);
  mark[0] = mark[1] = true;
  for (int i = 2; i <= 100; i++) {
    if (!mark[i]) prime[++n] = i;
    for (int j = 1; j <= n && i * prime[j] <= 100; j++) {
      mark[i * prime[j]] = true;
      if (i % prime[j] == 0) break;
    }
  }
  cin >> l >> r >> p;
  dfs(1, 0);
  cdt.push_back(1);
  sort(cdt.begin(), cdt.end());
  for (int i = 1; i < cdt.size(); i++) f[i] = 201;
  memset(mark, 0, sizeof(mark));
  for (int i = 2; i <= p; i++)
    for (int j = 0, k = 0; j < cdt.size(); j++) {
      if (cdt[j] > r / i) break;
      while (k < cdt.size() && (long long)cdt[j] * i > cdt[k]) k++;
      if (cdt[k] == (long long)cdt[j] * i && f[k] > f[j] + 1) {
        f[k] = f[j] + 1;
        if (!mark[k] && f[k] + i <= p) {
          mark[k] = true;
          ans += (cdt[k] >= l && cdt[k] <= r);
        }
      }
    }
  cout << ans << endl;
  return 0;
}
