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 maxn = 1000100;
const long long MOD = 1e9 + 7;
long long l, r;
int p, n;
int prime[110];
int a[3000100];
int f[3000100];
bool flag[3000100];
void getPrime(int P) {
  memset(prime, 0, sizeof(prime));
  for (int i = 2; i <= P; i++) {
    if (!prime[i]) prime[++prime[0]] = i;
    for (int j = 1; j <= prime[0] && prime[j] <= P / i; j++) {
      prime[prime[j] * i] = 1;
      if (i % prime[j] == 0) break;
    }
  }
}
void dfs(int x, int idx) {
  a[n++] = x;
  for (int i = idx; i <= prime[0]; ++i) {
    if (x * 1ll * prime[i] > r) break;
    dfs(x * prime[i], i);
  }
}
int main() {
  cin >> l >> r >> p;
  getPrime(p);
  n = 0;
  dfs(1, 1);
  sort(a, a + n);
  memset(f, 0x3f3f3f3f, sizeof(f));
  f[0] = 0;
  int ans = 0;
  for (int i = 2; i <= p; ++i) {
    int ptr = 0;
    for (int j = 1; j < n; ++j) {
      while (ptr < n && a[ptr] * i < a[j]) ptr++;
      if (ptr == n) break;
      if (a[ptr] * i == a[j]) {
        f[j] = min(f[j], f[ptr] + 1);
        if (f[j] + i <= p && a[j] <= r && a[j] >= l && !flag[j]) {
          ans++;
          flag[j] = true;
        }
      }
    }
  }
  cout << ans << endl;
  return 0;
}